Parcourir la source

fix song name regex with other languages

Sven il y a 3 ans
Parent
commit
6be7cf03ec
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      BetterYTM.user.js

+ 1 - 1
BetterYTM.user.js

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