Remove unnecessary escape character

http://eslint.org/docs/rules/no-useless-escape
This commit is contained in:
Stevoisiak 2019-12-31 12:13:40 -05:00 committed by GitHub
parent 48fddcb7bd
commit f4f339c4d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ function setupFileSystem(backend)
* Retrieve the value of the given GET parameter.
*/
function getParam(name) {
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
var results = new RegExp('[?&]' + name + '=([^&#]*)').exec(window.location.href);
if (results) {
return results[1] || null;
}