-
Notifications
You must be signed in to change notification settings - Fork 728
Rule 942360: Small bug in the regex cause FP #1580
Comments
Sorry for the inconvenience and thank you for reporting. @franbuehler : You reassembled this rule in your regex archaeology project, I think. Anything comment? |
No problem, thanks for the quick response. |
The 184 open issues does not mean we don't care. It just means we're not enough people in the project. :) In the light of this, a PR would be most welcome. Can't guarantee immediate merge though, we'll need to take a closer look first. |
Didn't meant to imply so :) |
Changing the I think a better fix would be to add a word boundary:
This still matches the case above and doesn't match Using pcretest:
What do you think? |
Yeah, your solution is better, updated the PR. |
@fgsch good solution with \b instead of +. |
@fgsch no problemo, i will make a seperate PR today |
Sorry for the delay. The fix is merged now. |
Type of Issue
False positive.
Description
The rule trigger a false positive for the following pattern:
\W asbla from
.More specifically, patterns similar to
, aside from
will trigger.This is likely due to the following construct
[\W]\s+as\s*?[\\"'`\w]+\s*?from
being used instead[\W]\s+as\s+?[\\"'`\w]+\s*?from
.Specifically
\s*?
instead of\s+?
.Confirmation
[X] I have removed any personal data (email addresses, IP addresses,
passwords, domain names) from any logs posted.
The text was updated successfully, but these errors were encountered: