From ff43510f2fe21b686f2c36d82a4fb4de3cbd2664 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Sun, 3 Jul 2022 23:26:08 +0200 Subject: [PATCH] change regex once again --- js/htmlescape.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/htmlescape.js b/js/htmlescape.js index 6b6d9d7..2e2227c 100644 --- a/js/htmlescape.js +++ b/js/htmlescape.js @@ -1,7 +1,7 @@ const {replace} = ''; -const es = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|\\\\|`);/g; -const ca = /[&<>'"\\\\`]/g; +const es = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/gi; +const ca = /[&<>'"]/g; const esca = { '&': '&',