-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\d does not work anymore since 0.2.7 #461
Comments
Ug. That is definitely not an (intentionally, IIRC) valid regex, but it looks like the old parser accepted it anyway. The problem is that your syntax is attempting to write a character range, where the end of the range is At the very least, the error message could be better here and should call out the fact that it's trying to interpret a range. Note that it is also possible that the current behavior is actually undesirable and we might want to be a bit more flexible in allowing |
@tobias47n9e Also, note that |
Oh. That makes a lot of sense 😄 Not sure what most people except from the single dash (literal or range). Stricter interpreting with a more helpful error message does sound good to me. About the 2nd comment: Not sure if I even need |
Up until 0.2.6
(?P<user_agent>[a-zA-Z\d-_]+/[0-9\.]+)
was a valid regex. Since 0.2.7\d
does not work and only(?P<user_agent>[a-zA-Z0-9-_]+/[0-9\.]+)
works. Is it possible that that is a regression because as far as I understand RE2 it should be valid.The issue was raised here:
https://gitlab.com/tobias47n9e/wikibase_rs/issues/1
The text was updated successfully, but these errors were encountered: