From 30418aa7814210cadd1a4b386e2165c2749bf478 Mon Sep 17 00:00:00 2001 From: Cliffano Subagio Date: Sat, 6 Jun 2026 10:01:45 +1000 Subject: [PATCH] Potential fix for code scanning alert no. 2: Incomplete string escaping or encoding Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- lib/jazz/compiler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/jazz/compiler.js b/lib/jazz/compiler.js index 0190069..bdaf2b6 100644 --- a/lib/jazz/compiler.js +++ b/lib/jazz/compiler.js @@ -251,6 +251,7 @@ class CompilerJS { if (expr.constructor === ast.Str) { return `"${expr.value + .replace(/\\/g, "\\\\") .replace(/\r/g, "\\r") .replace(/\n/g, "\\n") .replace(/\t/g, "\\t")