pecl-jsmin icon indicating copy to clipboard operation
pecl-jsmin copied to clipboard

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

Open netguy2k15 opened this issue 9 years ago • 1 comments

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);');

netguy2k15 avatar Dec 15 '15 10:12 netguy2k15

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

das-peter avatar Jan 20 '17 22:01 das-peter