mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 19:52:46 +02: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, " "));
|
|
}
|