ソースを参照

fix song name regex with other languages

Sven 3 年 前
コミット
6be7cf03ec
1 ファイル変更1 行追加1 行削除
  1. 1 1
      BetterYTM.user.js

+ 1 - 1
BetterYTM.user.js

@@ -877,7 +877,7 @@ async function getCurrentGeniusUrl()
 
         /** @param {string} songName */
         const sanitizeSongName = (songName) => {
-            const songNameRegex = /\((\w|\d|\s|[.,\-_&/])+\)/gmi;
+            const songNameRegex = /\(.+\)/gmi;
             let sanitized;
 
             if(songName.match(songNameRegex))