Skip to content
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

Changed rules 1002 according to issue 33 #34

Closed
wants to merge 1 commit into from

Conversation

ggi-cetic
Copy link

This allow to cover Password which doesn't start immediately with the P as the MyPassw0rd example.

This allow to cover Password which doesn't start immediately with the P as the MyPassw0rd example.
@CLAassistant
Copy link

CLAassistant commented Oct 11, 2021

CLA assistant check
All committers have signed the CLA.

@@ -16,7 +16,7 @@
Searcharea: body
rules:
- Code: 1002
Pattern: (?i)"p[a4@][s$][s$]w[o0]rd([#!@]?(123)?)?"
Pattern: (?i)"*p[a4@][s$][s$]w[o0]rd([#!@]?(123)?)?"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this PR pertaining to issue -> #33
Then this does not look like the right way to handle it. We would need to create a new rule to address the pattern. This particular pattern is looking for the term password.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it was easier to extend this rule than to create a new one as this rule already covers "password" but also its variants with numbers and special characters and it even covers when it is followed by special characters and numbers. So I thought having some characters at the beginning will follow the same principle. Reject the PR if you think it's better. I'll create another rule then

@grinish21
Copy link
Member

Closing the PR as the approach is not correct for the issue.

@grinish21 grinish21 closed this Nov 3, 2021
@ggi-cetic ggi-cetic deleted the patch-1 branch November 16, 2021 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants