rapid7 / recog

Pattern recognition for hosts, services, and content
Other
671 stars 199 forks source link

Restore non-capturing groups to fix anchored regex issue #478

Closed mkienow-r7 closed 2 years ago

mkienow-r7 commented 2 years ago

Description

Restores non-capturing groups removed in #381 to fix issues where the anchors will only apply to the immediate value they are next to rather than the sequence of values in an OR match. The tests on the previous PR passed since the examples do not contain any leading or trailing text. Thanks to @dmoinescu-r7 for drawing attention to the issue.

Example

Motivation and Context

Fix regex issue.

How Has This Been Tested?

Types of changes

Checklist: