From dd05fe743f46b6edd386e9fe85c3b0678b4a8737 Mon Sep 17 00:00:00 2001 From: DrakiaXYZ Date: Tue, 13 Feb 2024 15:55:11 +0000 Subject: [PATCH] Fix double quotes in container tags (!222) As far as I can tell, there's no need to strip backslashes, as they should only exist to escape other characters (Double quotes, for example). Stripping them will more often than not result in invalid JSON NOTE: Due to the loss of git history, I'm unable to see _why_ exactly this replacement was done in the first place. There may be some valid reason I'm not thinking of. If this is the case, I can look at other solutions Resolves: https://dev.sp-tarkov.com/SPT-AKI/Issues/issues/488 Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/222 Co-authored-by: DrakiaXYZ Co-committed-by: DrakiaXYZ --- project/src/utils/HttpResponseUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/utils/HttpResponseUtil.ts b/project/src/utils/HttpResponseUtil.ts index ecc6db62..dbd90c07 100644 --- a/project/src/utils/HttpResponseUtil.ts +++ b/project/src/utils/HttpResponseUtil.ts @@ -21,7 +21,7 @@ export class HttpResponseUtil return s.replace(/[\b]/g, "").replace(/[\f]/g, "").replace(/[\n]/g, "").replace(/[\r]/g, "").replace( /[\t]/g, "", - ).replace(/[\\]/g, ""); + ); } /**