Skip to content

Commit d0344cb

Browse files
committed
Fix issue parsing spaces in query string params
1 parent 7949385 commit d0344cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/src/utils/Utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Utils.now = function() {
118118

119119
Utils.getUrlParams = function() {
120120
let match, re = /([^&=]+)=?([^&]*)/g, params = {};
121-
let url = window.location.search.substring(1).replace("+", " ");
121+
let url = window.location.search.substr(1).replace(/\+/g, " ");
122122
while (match = re.exec(url)) { params[decodeURIComponent(match[1])] = decodeURIComponent(match[2]); }
123123
return params;
124124
};

0 commit comments

Comments
 (0)