Prechádzať zdrojové kódy

fix song name regex with other languages

Sven 3 rokov pred
rodič
commit
6be7cf03ec
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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))