From db39c0d3fa3287dd56df1a43f4ec7a8c842ac5f0 Mon Sep 17 00:00:00 2001 From: charredUtensil Date: Wed, 3 Jul 2024 00:22:14 -0400 Subject: [PATCH] fix escaping --- src/core/architects/utils/script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/architects/utils/script.ts b/src/core/architects/utils/script.ts index 9a8acc6..cb3284c 100644 --- a/src/core/architects/utils/script.ts +++ b/src/core/architects/utils/script.ts @@ -32,5 +32,5 @@ export function eventChain(name: string, ...rest: (`${string};` | Falsy)[]) { } export function escapeString(s: string) { - return s.replace(/"/g, '\\"'); + return s.replace(/\\/g, "").replace(/"/g, '\\"'); }