Skip to content

Commit

Permalink
.replace vs .replaceAll; On ya unit tests (need more of these)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedb committed Mar 23, 2021
1 parent bdaba7c commit 7dae276
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mopidy_iris/static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -162222,7 +162222,7 @@ var decodeUri = function decodeUri() {
uri = uri.replace(/,/g, '%2C');
uri = uri.replace(/ /g, '%20'); // Re-encode any accented characters. Most Mopidy backends expect encoding of these.

uri = uri.replaceAll(/[À-ÖØ-öø-ÿ]/g, function (_char) {
uri = uri.replace(/[À-ÖØ-öø-ÿ]/g, function (_char) {
return encodeURIComponent(_char);
});
return uri;
Expand Down
2 changes: 1 addition & 1 deletion mopidy_iris/static/app.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mopidy_iris/static/app.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mopidy_iris/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@

// Release details
// These are automatically injected to built HTML
var build = "1616484495";
var build = "1616484761";
var version = "3.57.1";

// Construct the script tag
Expand Down
2 changes: 1 addition & 1 deletion src/js/util/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 7dae276

Please sign in to comment.