mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
5 lines
254 B
JavaScript
5 lines
254 B
JavaScript
function qs(key) {
|
|
key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, "\\$&"); // escape RegEx meta chars
|
|
var match = location.search.match(new RegExp("[?&]"+key+"=([^&]+)(&|$)"));
|
|
return match && decodeURIComponent(match[1].replace(/\+/g, " "));
|
|
}
|