tools-python
tools-python copied to clipboard
fix: allow underscores in git PackageDownloadLocation validation
Summary
- allow underscores in the repository path segment of
git+git@download locations - the
git_patternregex inuri_validators.pywas missing_in its allowed character class, causing valid URLs like[email protected]:zephyrproject-rtos/CMSIS_6@...to fail validation - consistent with the identical fix applied in the Java counterpart (
spdx-java-model-2_X#33)
Testing
- added a regression test using the exact example from the issue
pytest -vvspasses all 69 URI validator testsisort,black,flake8all clean
Closes #860