pecl-jsmin
pecl-jsmin copied to clipboard
White space and "=" in regular expressions cannot be handled properly.
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);');
Looks like that's an issue in the original JSMin code: https://github.com/douglascrockford/JSMin/issues/11