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
If an application is going to use Query.TermRegex it's likely they'll want to turn the captured string into a Regex object.
Doing so can throw a PatternSyntaxException exception.
We should provide a method that attempts to create the Regex in an Either and turns any PatternSyntaxException exception into a Left:
deftoRegex:Either[String, Regex] =???
The text was updated successfully, but these errors were encountered:
If an application is going to use
Query.TermRegex
it's likely they'll want to turn the captured string into aRegex
object.Doing so can throw a
PatternSyntaxException
exception.We should provide a method that attempts to create the
Regex
in anEither
and turns anyPatternSyntaxException
exception into aLeft
:The text was updated successfully, but these errors were encountered: