From b7eae29a7bafddfef633d86e80e6ddfa7da49fa1 Mon Sep 17 00:00:00 2001 From: Giovanni Merlino Date: Tue, 6 Jan 2026 20:12:07 +0100 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> --- assets/js/distillpub/template.v2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/distillpub/template.v2.js b/assets/js/distillpub/template.v2.js index 3daca658..a622c553 100644 --- a/assets/js/distillpub/template.v2.js +++ b/assets/js/distillpub/template.v2.js @@ -4243,7 +4243,7 @@ ${css} if (this.hasAttribute("block")) { // normalize the tab indents - content = content.replace(/\n/, ""); + content = content.replace(/\n/g, ""); const tabs = content.match(/\s*/); content = content.replace(new RegExp("\n" + tabs, "g"), "\n"); content = content.trim();