text-icu icon indicating copy to clipboard operation
text-icu copied to clipboard

regex' leaks exception on empty regular expression

Open glguy opened this issue 9 years ago • 0 comments

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

glguy avatar Jul 19 '16 18:07 glguy