From 318d5b87fc1602ef16d8271bfdd937ef416a8182 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sat, 25 May 2024 02:15:04 +0800 Subject: [PATCH] fixed html replace --- klite.embd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/klite.embd b/klite.embd index 0347fd329a58b..745def80fff84 100644 --- a/klite.embd +++ b/klite.embd @@ -14545,7 +14545,10 @@ Current version: 141 return replacedText; }); } - internalHTMLparts.forEach((part, index) => { newbodystr = newbodystr.replace(``, part); }); // Bring back the embedded HTML parts. + newbodystr = newbodystr.replace(//gm, (match, p) => { + return internalHTMLparts[p]; + }); + for(let i=0;i