[Scripts > Strip] Tweak false replacing

pull/24/head
Oj 2 years ago
parent 364d3c564c
commit a4226a17a0

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

Loading…
Cancel
Save