{"ScriptPreparationCode":"//window.location.\r\nvar search = \u0022?test=test2\u0026test3=test4\u0026test5=test6\u0022;","TestCases":[{"Name":"Splitting","Code":"var params = {};\r\nvar query = search.substring(1);\r\nvar paramStrs = query.split(\u0027\u0026\u0027);\r\nfor (var paramStr of paramStrs) {\r\n\tvar pair = paramStr.split(\u0027=\u0027);\r\n\tparams[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);\r\n}","IsDeferred":false},{"Name":"Regex","Code":"var params = Object.fromEntries(new Map(Array.from(window.location.search.matchAll(/[\u0026\\?]([^=]\u002B)\\=([^\\\u0026]\u002B)/g)).map(match =\u003E [decodeURIComponent(match[1]), decodeURIComponent(match[2])])));","IsDeferred":false}]}