Skip to content

Commit 934fc20

Browse files
authored
Merge pull request #200 from nokia/fix-test_ok_creator_comment
Handle "SBOM Type:analyzed" (no space around ":")
2 parents 67b429e + 61c9f4f commit 934fc20

File tree

1 file changed

+2
-0
lines changed
  • tools/openchain_telco_sbom_validator/src/openchain_telco_sbom_validator

1 file changed

+2
-0
lines changed

tools/openchain_telco_sbom_validator/src/openchain_telco_sbom_validator/validator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ def validate(self,
345345
file)
346346

347347
else:
348+
# Handle "SBOM Type:analyzed"
349+
creator_comment = creator_comment.replace(':', ' ')
348350
# Remove punctuation
349351
translator = str.maketrans('', '', string.punctuation)
350352
creator_comment = creator_comment.translate(translator)

0 commit comments

Comments
 (0)