wolyshaw před 2 roky
rodič
revize
cadd08e5f6
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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" ||