Skip to content

Commit 128b25d

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent e477a86 commit 128b25d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyclonedx/model/vulnerability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ def get_localised_vector(self, vector: str) -> str:
634634
The vector without any scheme prefix as a `str`.
635635
"""
636636
if self is VulnerabilityScoreSource.CVSS_V4 and vector.startswith('CVSS:4.'):
637-
return re.sub(r'^CVSS:3\.\d/?', '', vector)
637+
return re.sub(r'^CVSS:4\.\d/?', '', vector)
638638
if (self is VulnerabilityScoreSource.CVSS_V3_1 or self is VulnerabilityScoreSource.CVSS_V3) \
639639
and vector.startswith('CVSS:3.'):
640640
return re.sub(r'^CVSS:3\.\d/?', '', vector)

0 commit comments

Comments
 (0)