From 50293fc6542a0a16ce2851fe65098beaaf0435d6 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Fri, 2 Sep 2016 21:38:22 -0700 Subject: [PATCH] don't repace spaces --- sim/simlib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/simlib.ts b/sim/simlib.ts index 03276157..ecdf3231 100644 --- a/sim/simlib.ts +++ b/sim/simlib.ts @@ -31,7 +31,7 @@ namespace pxsim { export function parseQueryString(): (key: string) => string { let qs = window.location.search.substring(1); - let getQsVal = (key: string) => decodeURIComponent((qs.split(`${key}=`)[1] || "").split("&")[0] || "").replace(/\+/g, " "); + let getQsVal = (key: string) => decodeURIComponent((qs.split(`${key}=`)[1] || "").split("&")[0] || ""); //.replace(/\+/g, " "); return getQsVal; } }