Skip to content

Conversation

tschmidtb51
Copy link

fixes #400

@ccoffin ccoffin changed the base branch from main to develop May 20, 2025 16:18
Copy link
Collaborator

@ccoffin ccoffin left a comment

Choose a reason for hiding this comment

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

It appears that the upper cpe22and23 pattern match might need a tweak. Note that it contains a match for both cpe 2.2 and cpe 2.3. I included the anchors for both and now it appears to work as i would suspect. I am not a regex guru so let me know if i am missing something. See https://regex101.com/r/KluW0Y/1 for the updated pattern match.

@tschmidtb51
Copy link
Author

@ccoffin If I didn't miss anything, then you changed it from ^((cpe2.2)|(cpe2.3))$ to ^(cpe2.2)$|^(cpe2.3)$. IMHO both are equivalent...

CSAF uses the following (which IIRC just swaps the CPE versions):
https://github.com/oasis-tcs/csaf/blob/1726fcf10d6e444e6e65a696ac9198c981858d23/csaf_2.1/json_schema/csaf_json_schema.json#L163

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.

CPE patterns are not anchored
2 participants