Commit d130132
Fix trailing slash in URL causing ValueError in add command (issue #1137)
Strip trailing slashes from VCS URLs at the entry point of vcs_url_to_purl
so that patterns like https://github.com/org/repo/ are normalised before
regex matching and path splitting. Add parametrized regression tests for
GitHub, Bitbucket, GitLab, and generic URLs with trailing slashes.
https://claude.ai/code/session_01HousmFCGC1BbEczgkmTSC61 parent a4a27c6 commit d130132
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
118 | 130 | | |
119 | 131 | | |
120 | 132 | | |
| |||
0 commit comments