-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Use precompiled regular expressions to validate the segments of a UID #4064
Conversation
Thanks! This looks like a nice improvement. It seems the pattern is also used at other places. I would suggest to make
You can then change the line in
|
@J-N-K the PR has been updated, as suggested. Thank you for the fast feedback / review! |
Can you fix spotless:
|
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
@J-N-K Sorry for this, my local spotless is somehow broken.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Description
Avoid to compile the SEGMENT_PATTERN for each validated segment of a UID.
Signed-off-by: Jörg Sautter joerg.sautter@gmx.net