Commit a266720
authored
## Follow-up to PR #496
Addresses unresolved [Bugbot review
comment](#496 (comment))
(High severity) that was missed before merging #496.
## Problem
`issueArgFromUrl` returned the project slug without `.toLowerCase()`
when parsing Sentry issue URLs like:
```
https://sentry.io/organizations/my-org/issues/CLI-G/
```
This produced `project: "CLI"` (uppercase) which fails API lookups since
Sentry slugs are always lowercase. The other three parsing paths
(`parseWithDash`, `parseAfterSlash`, `parseMultiSlashIssueArg`) were
already fixed in PR #496.
## Fix
Added `.toLowerCase()` to the project slug in `issueArgFromUrl` and
updated two test expectations to match.
1 parent 9c198e9 commit a266720
2 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
404 | 410 | | |
405 | 411 | | |
406 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
0 commit comments