From 73ac41967cdc720fde64e6ccafc89384fe44128b Mon Sep 17 00:00:00 2001 From: Oj Date: Wed, 20 Apr 2022 00:51:18 +0100 Subject: [PATCH] [Scripts > Strip] Add edge-case workaround for one regex --- scripts/strip.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/strip.js b/scripts/strip.js index 44b3c89..4820768 100644 --- a/scripts/strip.js +++ b/scripts/strip.js @@ -22,6 +22,7 @@ const stripCode = (code) => code .replaceAll('throw ', 'throw~') .replaceAll('async ', 'async~') .replaceAll('else ', 'else~') + .replace('/([0-9]+) files/', '/([0-9]+)~files/') .replaceAll('false', '!1') .replaceAll('true', '!0') .replace(/((['"`])[\s\S]*?\2)|[ \n]/g, (_, g1) => g1 || '')