i have the following url
http://bulk-click.dasdasda.com/asdas/adClick?d=scsdc%20cdcsc%20cdscsd
i use this code to get the paramertes but my d=scsdc cdcsc cdscsd instead of  d=scsdc%20cdcsc%20cdscsd
how can i make sure d will remain equal to scsdc%20cdcsc%20cdscsd
the code is:
    pl = /\+/g, // Regex for replacing addition symbol with a space
    search = /([^&=]+)=?([^&]*)/g,
    decode = function(s) {
        return decodeURIComponent(s);
    },
    query = urlEncode.search.substring(1);
    //console.log(query);
result = {};
while ((match = search.exec(query)))
    result[decode(match[1])] = decode(match[2]);
for (let key in result) {
    let value = result[key];
    paramsData[key] = value;
}
