diff options
Diffstat (limited to 'js/lib/common.js')
-rw-r--r-- | js/lib/common.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/lib/common.js b/js/lib/common.js index e7cc13b..0104e68 100644 --- a/js/lib/common.js +++ b/js/lib/common.js @@ -27,4 +27,11 @@ var unescapeString = function(s) { } }; -module.exports = { unescapeString: unescapeString }; +var normalizeURI = function(uri) { + "use strict"; + return encodeURI(unescape(uri)); +} + +module.exports = { unescapeString: unescapeString, + normalizeURI: normalizeURI + }; |