diff options
Diffstat (limited to 'build/util.js')
-rw-r--r-- | build/util.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build/util.js b/build/util.js index 785c195..df88635 100644 --- a/build/util.js +++ b/build/util.js @@ -9,10 +9,10 @@ function undashUuid(uuid) { } exports.undashUuid = undashUuid; function queryToJson(queryString) { - var query = {}; - var pairs = (queryString[0] === '?' ? queryString.substr(1) : queryString).split('&'); - for (var i = 0; i < pairs.length; i++) { - var pair = pairs[i].split('='); + const query = {}; + const pairs = (queryString[0] === '?' ? queryString.substr(1) : queryString).split('&'); + for (let i = 0; i < pairs.length; i++) { + const pair = pairs[i].split('='); query[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || ''); } return query; |