sqmk / pecl-jsmin

PHP PECL extension for JavaScript minification
Other
69 stars 21 forks source link

White space and "=" in regular expressions cannot be handled properly. #44

Open netguy2k15 opened 8 years ago

netguy2k15 commented 8 years ago

When we run the following code, the first line will remove the white space after "foo", the second line will produce an error.

echo jsmin('return /foo /.test(bar);');
echo jsmin('return /foo=/.test(bar);');
das-peter commented 7 years ago

Looks like that's an issue in the original JSMin code: https://github.com/douglascrockford/JSMin/issues/11