Commit 63e938d
fix(comments): stop legacy comment updates crashing on scoped names
process_original_security_comment split the package cell on every "@", so a
scoped name carrying its own "@" unpacked into three values and raised an
uncaught ValueError. Same bug class this branch already fixed one function over
in process_updated_security_comment, just left in its sibling.
Split from the right, and pass the ecosystem through as pkg_type rather than
pre-concatenating it onto the package name. That makes the two comment formats
agree: both now accept an ignore command for a scoped package in either the
ecosystem-qualified or the bare form, where the legacy path previously matched
only the qualified one.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent fc36c76 commit 63e938d
2 files changed
Lines changed: 36 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | | - | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
292 | 303 | | |
293 | 304 | | |
294 | 305 | | |
| |||
316 | 327 | | |
317 | 328 | | |
318 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
319 | 351 | | |
320 | 352 | | |
321 | 353 | | |
| |||
0 commit comments