Commit 27c9f1b
committed
fix(api): use cleaned endpoint length for api/0/ prefix detection
The length heuristic that detects api/0/ prefix removal compared
against the raw input length. After line-break stripping was added,
multi-line pasted endpoints without api/0/ would falsely trigger
the warning because line-break removal also reduces string length.
Fix: compare against the cleaned (line-break-stripped) input length.
Reported by Cursor Bugbot.1 parent 33dd8c1 commit 27c9f1b
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1204 | 1204 | | |
1205 | 1205 | | |
1206 | 1206 | | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1213 | 1216 | | |
1214 | 1217 | | |
1215 | 1218 | | |
| |||
0 commit comments