wolyshaw 2 vuotta sitten
vanhempi
commit
cadd08e5f6
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      src/views/accompaniment/modals/form.vue

+ 2 - 1
src/views/accompaniment/modals/form.vue

@@ -969,7 +969,8 @@ export function getGradualLengthByXml(xml) {
     }
 
     const isKeyWork = keys.find(k => {
-      return textContent && (k.startsWith(textContent) || textContent?.startsWith(k))
+      const ks = k.split(' ')
+      return textContent && ks.includes(textContent)
     })
     if (
       ele.type === "metronome" ||