-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Although there is a query parser already, consider a more straightforward way of reading the variables passed in the URL.
Something like:
var $_GET = {};
document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () {
function decode(s) {
return decodeURIComponent(s.split("+").join(" "));
}
$_GET[decode(arguments[1])] = decode(arguments[2]);
});