From b41c78206d8663b7f4b7abee9a5d4a04124a10e4 Mon Sep 17 00:00:00 2001 From: Weirong Xu Date: Wed, 20 Sep 2017 22:19:50 +0800 Subject: [PATCH] fix single quotes match --- js/ctrls/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ctrls/modal.js b/js/ctrls/modal.js index 85b30fd..55d9c6d 100644 --- a/js/ctrls/modal.js +++ b/js/ctrls/modal.js @@ -81,7 +81,7 @@ angular .chain(this.uris.trim().split(/\r?\n/g)) .map(function(d) { return _(d) - .replace(/["'][^"]*['"]/g, function(c) { + .replace(/["'][^"']*["']/g, function(c) { return c.replace(/%/g,'%25').replace(/ /g,'%20'); }) .trim()