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

Unicode characters in regular expressions are breaking.

Open olelishna opened this issue 6 years ago • 0 comments

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 ?

olelishna avatar May 14 '18 12:05 olelishna