.replace vs .replaceAll; On ya unit tests (need more of these)
This commit is contained in:
@ -333,7 +333,7 @@ const decodeUri = (rawUri = '') => {
|
||||
uri = uri.replace(/ /g, '%20');
|
||||
|
||||
// Re-encode any accented characters. Most Mopidy backends expect encoding of these.
|
||||
uri = uri.replaceAll(/[À-ÖØ-öø-ÿ]/g, (char) => encodeURIComponent(char));
|
||||
uri = uri.replace(/[À-ÖØ-öø-ÿ]/g, (char) => encodeURIComponent(char));
|
||||
|
||||
return uri;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user