We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function parseSearch(search) { if (search[0] === "?") { search = search.slice(1); } var reg = /[^&]+=[^&]+/g; var matches = search.match(reg); var res = {}; if (matches) { for (var i = 0, ilen = matches.length; i < ilen; i++) { var str = matches[i]; var index = str.indexOf("="); var key = str.slice(0, index).trim(); var value = str.slice(index + 1); res[key] = value; } } return res; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: