matthiasmullie / minify

CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.
https://matthiasmullie.github.io/minify/
MIT License
1.96k stars 310 forks source link

Multiline comments not always stripped #403

Open wvhn opened 1 year ago

wvhn commented 1 year ago

Hi, in version 1.3.69 multiline comments don't get stripped by JS.php if there is a character directly after the comment identifier:

/*
* this comment gets stripped correctly
*/
/**
* this comment does not get stripped 
*/
/*! also no stripping on this one  */

I had an earlier version from Mid 2016 where this was working OK.

Thanks and best regards Wolfram

b1ek commented 1 year ago

Same issue here

wvhn commented 1 year ago

318 will be fixing this - if accepted ;)