From 291fd67499585b7989b0cfdd735473849e7a9146 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 12 Jan 2015 09:05:28 -0800 Subject: Use decodeURI instead of the deprecated 'unescape'. --- js/lib/common.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'js') diff --git a/js/lib/common.js b/js/lib/common.js index 06486d3..6481c68 100644 --- a/js/lib/common.js +++ b/js/lib/common.js @@ -1,7 +1,5 @@ "use strict"; -/* global unescape */ - var entityToChar = require('./html5-entities.js').entityToChar; var ENTITY = "&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});"; @@ -36,7 +34,7 @@ var unescapeString = function(s) { }; var normalizeURI = function(uri) { - return encodeURI(unescape(uri)); + return encodeURI(decodeURI(uri)); }; var replaceUnsafeChar = function(s) { -- cgit v1.2.3