[Scripts > Strip] Tweak false replacing
This commit is contained in:
parent
364d3c564c
commit
a4226a17a0
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ const stripCode = (code) => code
|
||||||
.replaceAll('throw ', 'throw~')
|
.replaceAll('throw ', 'throw~')
|
||||||
.replaceAll('async ', 'async~')
|
.replaceAll('async ', 'async~')
|
||||||
.replaceAll('else ', 'else~')
|
.replaceAll('else ', 'else~')
|
||||||
.replaceAll('false', '!!0')
|
.replaceAll('false', '!1')
|
||||||
.replaceAll('true', '!0')
|
.replaceAll('true', '!0')
|
||||||
.replace(/((['"`])[\s\S]*?\2)|[ \n]/g, (_, g1) => g1 || '')
|
.replace(/((['"`])[\s\S]*?\2)|[ \n]/g, (_, g1) => g1 || '')
|
||||||
.replaceAll('~', ' ')
|
.replaceAll('~', ' ')
|
||||||
|
|
Loading…
Reference in a new issue