From a4226a17a0f648e0fdf216072e2b9f99e87a87ad Mon Sep 17 00:00:00 2001 From: Oj Date: Wed, 23 Mar 2022 09:04:07 +0000 Subject: [PATCH] [Scripts > Strip] Tweak false replacing --- scripts/strip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/strip.js b/scripts/strip.js index 969abc0..5c6ddf4 100644 --- a/scripts/strip.js +++ b/scripts/strip.js @@ -22,7 +22,7 @@ const stripCode = (code) => code .replaceAll('throw ', 'throw~') .replaceAll('async ', 'async~') .replaceAll('else ', 'else~') - .replaceAll('false', '!!0') + .replaceAll('false', '!1') .replaceAll('true', '!0') .replace(/((['"`])[\s\S]*?\2)|[ \n]/g, (_, g1) => g1 || '') .replaceAll('~', ' ')