[Scripts > Strip] Tweak false replacing

This commit is contained in:
Ducko 2022-03-23 09:04:07 +00:00
parent 364d3c564c
commit a4226a17a0
1 changed files with 1 additions and 1 deletions

View File

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