Repository navigation
Commit d034440
fix(client-runtime): treat a numeric segment as a port only behind the host
A port can only sit directly behind the authority, but the guard rejected
any all-numeric last segment of a hosted URL. A repository genuinely named
with digits, as in https://github.com/acme/123, proposed no folder.
The port rule now applies only when nothing follows the numeric segment.
Deeper segments are path, so acme/123 keeps proposing 123.1 parent 6888fe8 commit d034440
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
| |||
0 commit comments