[Scripts > Strip] Fix removing spaces in Regex

This commit is contained in:
Ducko 2022-04-03 22:52:28 +01:00
parent 86c17ca29f
commit a3aeadc9e8
1 changed files with 1 additions and 1 deletions

View File

@ -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('? ?', '??');