Skip to content

Commit

Permalink
fix: SPDX version string being truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison committed Sep 30, 2023
1 parent a98b41f commit 8ba5184
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sbomdiff/spdx_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ def parse_spdx_tag(self, sbom_file):
license = None
if line_elements[0] == "PackageVersion":
version = line[16:].strip().rstrip("\n")
version = version.split("-")[0]
version = version.split("+")[0]
if line_elements[0] == "PackageLicenseConcluded":
license = line_elements[1].strip().rstrip("\n")
if package not in packages and version is not None and license is not None:
Expand Down

0 comments on commit 8ba5184

Please sign in to comment.