From a3aeadc9e8827ac8a92204ae200eef162821f473 Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 3 Apr 2022 22:52:28 +0100 Subject: [PATCH] [Scripts > Strip] Fix removing spaces in Regex --- scripts/strip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/strip.js b/scripts/strip.js index 5c6ddf4..21627cd 100644 --- a/scripts/strip.js +++ b/scripts/strip.js @@ -24,7 +24,7 @@ const stripCode = (code) => code .replaceAll('else ', 'else~') .replaceAll('false', '!1') .replaceAll('true', '!0') - .replace(/((['"`])[\s\S]*?\2)|[ \n]/g, (_, g1) => g1 || '') + .replace(/((['"`/])[\s\S]*?\2)|[ \n]/g, (_, g1) => g1 || '') .replaceAll('~', ' ') .replaceAll('? ?', '??');