@goplayerjuggler/abc-tools 1.0.23 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goplayerjuggler/abc-tools",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "sorting algorithm and implementation for ABC tunes; plus other tools for parsing and manipulating ABC tunes",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -176,7 +176,7 @@ function hasAnacrucis(abc) {
176
176
  */
177
177
  function toggleMeterDoubling(abc, smallMeter, largeMeter, currentMeter) {
178
178
  //if no L: header at all: add one
179
- if (!/\nL:\s*1\/8/.test(abc)) abc = abc.replace("\nK:", "\nL:1/8\nK:");
179
+ if (!/\nL:\s*1\/\d+/.test(abc)) abc = abc.replace("\nK:", "\nL:1/8\nK:");
180
180
  if (!currentMeter) currentMeter = getMeter(abc);
181
181
 
182
182
  const isSmall =