CJex / regulex

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

Visualizer not working properly #20

Closed GreatRash closed 9 years ago

GreatRash commented 9 years ago

I think this expression - http://jex.im/regulex/#!embed=false&flags=&re=%5Ea%7Cb%24 and this expression - http://jex.im/regulex/#!embed=false&flags=&re=%5E(a%7Cb)%24 should look the same, except of 'group' block

CJex commented 9 years ago

It shouldn't:

/^a|b$/.test("ac")
// => true
/^a|b$/.test("cb")
// => true

/^(a|b)$/.test("ac")
// =>false
/^(a|b)$/.test("a")
// => true