[Scripts > Strip] Fix removing spaces in Regex

pull/24/head
Oj 2 years ago
parent 86c17ca29f
commit a3aeadc9e8

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

Loading…
Cancel
Save