Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regex' leaks exception on empty regular expression #25

Open
glguy opened this issue Jul 19, 2016 · 0 comments
Open

regex' leaks exception on empty regular expression #25

glguy opened this issue Jul 19, 2016 · 0 comments

Comments

@glguy
Copy link
Member

glguy commented Jul 19, 2016

My understanding is that regex' was supposed to catch errors and wrap them in Left, however for an empty string we see:

Prelude Data.Text.ICU> regex' [] ""
*** Exception: ICUError U_ILLEGAL_ARGUMENT_ERROR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant