Repository navigation
Commit fe73cbd
committed
fix(core): read backslashes as separators in globParent
`fs.globSync` reads backslashes as path separators, never as escapes, on
every platform, so `doc\api\*.md` finds `doc/api`'s files, but
`globParent` only split on `/` and returned `.` for it. glob-parent
converted backslashes on Windows, so this matches it again.
Also covers `?` (glob syntax, which glob-parent missed) and `(b|c)`
(matched literally by `fs.globSync`, which glob-parent treated as glob).
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent fd5420a commit fe73cbd
2 files changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
65 | 76 | | |
66 | 77 | | |
67 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
41 | 42 | | |
0 commit comments