-
Notifications
You must be signed in to change notification settings - Fork 144
Fix check-role-prefix pattern regexp #3474
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
Fix check-role-prefix pattern regexp #3474
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
It seems backlash was creating ambiguity, as different regex engines handle this different. Now is using special positioning rule technique. Signed-off-by: Enrique Vallespi Gil <evallesp@redhat.com>
047bc2a to
64e6813
Compare
rebtoor
left a comment
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.
try this. I'm escaping every special char in the name. It should address every "corner case" we have :)
Apply rebtoor suggestion about adding scaping special characters in role names. So now roles can have special characters "*" and "." as they're escaped. Co-authored-by: Roberto Alfieri <538845+rebtoor@users.noreply.github.com> Signed-off-by: Enrique Vallespi Gil <evallesp@redhat.com>
8964d68 to
5bf2fce
Compare
3604cbf
3604cbf to
8721a89
Compare
We're skipping Single quotes in sed as we want literal $ in the sed pattern, not shell expansion. Added this file to irrelevant-files. Signed-off-by: Enrique Vallespi Gil <evallesp@redhat.com>
8721a89 to
a85d191
Compare
It seems backlash was creating ambiguity, as different regex engines handle this different.
Now is using special positioning rule technique.