tedious / JShrink

Javascript Minifier built in PHP
http://www.tedivm.com
BSD 3-Clause "New" or "Revised" License
749 stars 152 forks source link

"Comments" are detected inside of Regex #101

Closed andryshok closed 1 year ago

andryshok commented 3 years ago

Error in script after Minify when script contents has some code. For example

return /^([a-z][a-z\d+-.]:)?\/\//i.test(url); minifed by return /^([a-z][a-z\d+-.]:)?\/};

script minifed has errors file Axios.js - https://github.com/axios/axios

tedivm commented 1 year ago

This should be resolved in the latest version.