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 this example, I need to make sure a string does not start with foo- or bar-.
When I use this library, I get the error: "^(?!(foo-|bar-))[a-z][a-z0-9]+$" is not valid "regex", which is valid regex for JS-based schema validators, but fails with this implementation, because the regexp library from the Golang stdlib does not support the ?!() syntax.
I have a regex like this:
In this example, I need to make sure a string does not start with
foo-
orbar-
.When I use this library, I get the error:
"^(?!(foo-|bar-))[a-z][a-z0-9]+$" is not valid "regex"
, which is valid regex for JS-based schema validators, but fails with this implementation, because the regexp library from the Golang stdlib does not support the?!()
syntax.More info here:
https://stackoverflow.com/questions/26771592/negative-look-ahead-go-regular-expressions
The text was updated successfully, but these errors were encountered: