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
Current implementation of the Regex matching semantics relies on a hand-written regex matcher logic. The current implementation is using a greedy approach and is failing to match valid regexes.
For example, regex like Regex.digit.* ~ Regex.oneOf('1') will fail to match "01" because the digit part will consume all the input.
One way to solve it is to leave the current regex encoding as is and but to use the java regex matcher for the matcher implementation.
Currently zio-parser already implements a declerative regex encoding that is using the java regex matcher engine, so we can replace zio-schemas regex code with zio-parsers code.
The text was updated successfully, but these errors were encountered:
Current implementation of the Regex matching semantics relies on a hand-written regex matcher logic. The current implementation is using a greedy approach and is failing to match valid regexes.
For example, regex like
Regex.digit.* ~ Regex.oneOf('1')
will fail to match"01"
because the digit part will consume all the input.One way to solve it is to leave the current regex encoding as is and but to use the java regex matcher for the matcher implementation.
Currently zio-parser already implements a declerative regex encoding that is using the java regex matcher engine, so we can replace zio-schemas regex code with zio-parsers code.
The text was updated successfully, but these errors were encountered: