pecl-jsmin
pecl-jsmin copied to clipboard
Unicode characters in regular expressions are breaking.
jsmin version is 3.0.
Example JS code
var b = a.match(/ред/i);
Expected output
var b=a.match(/ред/i);
Actual output
var b=a.match(/@54/i);
So any unicode character inside a regular expression is replaced. In the same time unicode characters in string literals are handled normal way without replacing. May be this is related with https://github.com/sqmk/pecl-jsmin/issues/14 ?