You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to avoid runtime errors, this commit replaces
```
regex :: String -> RegexFlags -> Regex
```
with a safe version:
```
regex :: String -> RegexFlags -> Either String Regex
```
If the Regex contains a syntax error (or invalid flags), the exception
is handled in the FFI code and `Left error` is returned.
0 commit comments