Skip to content

Commit

Permalink
Unnecessary escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Jan 4, 2021
1 parent 04ba4c7 commit c4fddc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys
// Calculate the current article's encoded ZIM baseUrl to use when processing relative links
var baseUrl = (dirEntry.namespace + '/' + dirEntry.url.replace(/[^/]+$/, ''))
// URI-encode anything that is not a '/'
.replace(/[^\/]+/g, function(m) {
.replace(/[^/]+/g, function(m) {
return encodeURIComponent(m);
});
// Write article html to the article container
Expand Down

0 comments on commit c4fddc0

Please sign in to comment.