Skip to content

Instantly share code, notes, and snippets.

@M0r13n
Created April 1, 2020 19:30
Show Gist options
  • Save M0r13n/8c30c4c92971bae22945dc985545a10e to your computer and use it in GitHub Desktop.
Save M0r13n/8c30c4c92971bae22945dc985545a10e to your computer and use it in GitHub Desktop.
Does the url query string need a & or a ? as an separator?
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