JShrink icon indicating copy to clipboard operation
JShrink copied to clipboard

Fails to recognize regex literals following keyword

Open mrclay opened this issue 11 years ago • 1 comments

In both cases JShrink treats these as division followed by unterminated string:

return /'/;

typeof /'/;

mrclay avatar Aug 13 '14 01:08 mrclay

FYI my big evil set of regexes https://github.com/mrclay/minify/blob/master/min_unit_tests/_test_files/js/regexes.js

mrclay avatar Aug 13 '14 01:08 mrclay