Przeglądaj źródła

Merge branch 'feature-tianyong' into klx-online

TIANYONG 1 dzień temu
rodzic
commit
9e97120ffc
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/view/fingering/fingering-config.ts

+ 2 - 2
src/view/fingering/fingering-config.ts

@@ -352,11 +352,11 @@ export const matchVoicePart = (id: number | string, type: "SINGLE" | "CONCERT"):
         let pitchKey = sKey;
         if (typeof sKey === "string" && isNaN(Number(sKey)) ) {
           pitchKey = pitchKey.toLocaleLowerCase().replace(/ /g, "");
-          pitchKey = pitchKey.replace(/[_0-9]+$/, '');
+          pitchKey = pitchKey.replace(/[_0-9.]+$/, '');
         }
         if (typeof sKey === "string") {
           // 去掉声轨后面的数字
-          code = code.replace(/[_0-9]+$/, '');
+          code = code.replace(/[_0-9.]+$/, '');
         }
         if (pitchKey === code) {
           _track = subject[sKey];