Repository navigation
Commit 93e036c
committed
fix(filesystem): ensure bare Windows drive letters normalize to root
Previously,
ormalizePath('C:') returned C:. on Windows, which could break path validation.
By appending a separator before normalization for bare drive letters, we ensure they
consistently resolve to the drive root (e.g., C:\).
Fixes modelcontextprotocol#34181 parent 72efc42 commit 93e036c
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| |||
116 | 122 | | |
117 | 123 | | |
118 | 124 | | |
| 125 | + | |
0 commit comments