X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2cb166cf33f70883e3de5920f14d84fee0c5b7c8..480eaa1b3638f29fcf05b67f67e31319f596130b:/vendor/assets/javascripts/querystring.js?ds=sidebyside diff --git a/vendor/assets/javascripts/querystring.js b/vendor/assets/javascripts/querystring.js index 24e4382ad..2a54a0730 100644 --- a/vendor/assets/javascripts/querystring.js +++ b/vendor/assets/javascripts/querystring.js @@ -17,16 +17,16 @@ var trim = require('trim'); */ exports.parse = function(str){ - if ('string' != typeof str) return {}; + if ('string' !== typeof str) return {}; str = trim(str); - if ('' == str) return {}; + if ('' === str) return {}; var obj = {}; var pairs = str.split('&'); for (var i = 0; i < pairs.length; i++) { var parts = pairs[i].split('='); - obj[parts[0]] = null == parts[1] + obj[parts[0]] = null === parts[1] ? '' : decodeURIComponent(parts[1]); } @@ -68,4 +68,4 @@ exports.right = function(str){ }; },{}]},{},[]) -; \ No newline at end of file +;