[Scripts > Strip] Add edge-case workaround for one regex

mu
Oj 2 years ago
parent dbb9eef558
commit 73ac41967c

@ -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 || '')

Loading…
Cancel
Save