Skip to content

Commit

Permalink
fix: Handle : in version string
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison committed Apr 13, 2023
1 parent 3bef560 commit dacd838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbomdiff/spdx_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def parse_spdx_tag(self, sbom_file):
version = None
license = None
if line_elements[0] == "PackageVersion":
version = line_elements[1].strip().rstrip("\n")
version = line[16:].strip().rstrip("\n")
version = version.split("-")[0]
version = version.split("+")[0]
if line_elements[0] == "PackageLicenseConcluded":
Expand Down

0 comments on commit dacd838

Please sign in to comment.