diff --git a/src/decode.js b/src/decode.js index 695e249..afa4f18 100644 --- a/src/decode.js +++ b/src/decode.js @@ -48,7 +48,7 @@ do { } while (needReplace) decodeAlias.add(decoderFunction) -main = main.replace(new RegExp(`var +(?:${[...decodeAlias].join('|')}) += +(?:${[...decodeAlias].join('|')}) *;`, 'g'), '') -main = main.replace(new RegExp(`var +(?:${[...decodeAlias].join('|')}) += +(?:${[...decodeAlias].join('|')}) *,`, 'g'), 'var ') +main = main.replace(new RegExp(`var +(?:${[...decodeAlias].join('|')}) += +(?:${[...decodeAlias].join('|')}) *; +\n`, 'g'), '') +main = main.replace(new RegExp(`var +(?:${[...decodeAlias].join('|')}) += +(?:${[...decodeAlias].join('|')}) *, +\n`, 'g'), 'var ') writeFileSync('dist/main.js', beautify(main, { indent_size: 2 }))