haskell / haskell/text-icu

regex' leaks exception on empty regular expression

Open
#25 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
50
Forks
41
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.