CJex / regulex

:construction: Regular Expression Excited!
https://jex.im/regulex/
MIT License
5.71k stars 756 forks source link

Error in Internet Explorer #12

Closed JamesHabben closed 9 years ago

JamesHabben commented 9 years ago

pattern using character ranges in square brackets when using Internet Explorer causes "unterminated character class" error. Same pattern does not error in Chrome. [0-4]

regulex-ie-error

CJex commented 9 years ago

Sorry,it's my fault. But currently I have no Windows IE to test. I'll try to install Windows in Virtualbox on my linux laptop to test it later. I guess possiblely this error is caused by string index.

Could you attach a screenshot of the dev console with detailed error message?

JamesHabben commented 9 years ago

When I bring up the F12 developer tools, I get an error about a load timeout on require.min.js and I don't get the same error as displayed in the screen above. The page doesn't function at all, and I am not real familiar with the F12 tools in IE. regulex-ie-error2

kunapyanov commented 9 years ago

regulex Same error in IE 10. Rule like [0-9] works. Maybe it helps. There is no error in my console.

JamesHabben commented 9 years ago

Mine is IE 11

CJex commented 9 years ago

Now Fixed. UglifyJS unescape my unicode escape "\uFFFF". IE recognize U+FFFF in source code string as U+FFFD.

UglifyJS2's new version may have fixed this problem:

JamesHabben commented 9 years ago

Looks fixed from my view. Thanks!