tedious / JShrink

Javascript Minifier built in PHP
http://www.tedivm.com
BSD 3-Clause "New" or "Revised" License
751 stars 152 forks source link

"Unclosed regex pattern at position: 54468" error processing bootstrap-datetimepicker.js #76

Closed sorochei closed 5 years ago

sorochei commented 6 years ago

Hello.

This example causes an error "Unclosed regex pattern at position: 54468" \JShrink\Minifier::minify(file_get_contents('http://demos.krajee.com/assets/c4d9a2f2/js/bootstrap-datetimepicker.js'));

Here is a simplified example, a string from a file. \JShrink\Minifier::minify("return /t|hh?|HH?|p|P|z|Z|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g;\n");

Is there anything you can do to get rid of the error?