Created
April 1, 2020 19:30
-
-
Save M0r13n/8c30c4c92971bae22945dc985545a10e to your computer and use it in GitHub Desktop.
Does the url query string need a & or a ? as an separator?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function url_sep(url) { | |
return url.match(/\?/) ? "&" : "?"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment