Skip to content

Commit 705e792

Browse files
authored
Streamline stripping V prefixes in versions
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 986e75f commit 705e792

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vulnerabilities/importers/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def resolve_version_range(
530530
# Remove whitespace
531531
package_version = package_version.replace(" ", "")
532532
# Remove leading 'v'
533-
package_version = package_version.lstrip("v").lstrip("V")
533+
package_version = package_version.lstrip("vV")
534534
try:
535535
version = affected_version_range.version_class(package_version)
536536
except Exception:

0 commit comments

Comments
 (0)