Commit c352450
refactor(ops): drop trailing-slash regex in instrumentedAxios
URL.pathname is already normalized by the URL parser, so the
`/\/+$/` regex was doing nothing useful for endpoint labels.
Removing it also clears Sonar S5852 (slow-regex hotspot) — the
regex is linear, but reviewing it adds noise we don't need.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bfed3e1 commit c352450
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 22 | + | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
0 commit comments