fix(parsers): remove duplicated ID from PCI DSS section name (#328) #721
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix(parsers): remove duplicated ID from PCI DSS section name (#328)
Overview
This PR fixes a bug in the PCI DSS parser where the section ID was being duplicated in the section Name field.
Previously, the parser read "Defined Approach Requirements" from the spreadsheet, which often includes the ID prefix (e.g., "12.1.2 Ensure..."). Since the ID is also read separately, OpenCRE would display duplication (e.g., "12.1.2 12.1.2 Ensure...").
Changes
application/utils/external_project_parsers/parsers/pci_dss.py
sectionname starts with thesectionID.sectionname, leaving only the clean description text (e.g., "Ensure...").Verification
Verified locally using a temporary reproduction script to simulate the parsing logic:
12.1.2 Ensure...).Ensure..).Fixes #328