Commit 5305187
committed
fix: use path.Clean for slash-normalized glob patterns
filepath.Clean uses the OS-native separator, so on Windows it
re-introduced backslashes after filepath.ToSlash, producing patterns
like "apps\*" that the gobwas glob (compiled with '/' as separator)
could never match. Switching to path.Clean keeps patterns slash-
separated on every platform, fixing TestClassifier_Classify path
cases and TestDiscovery_AttributeFilters/path_filter_*.1 parent 5a47467 commit 5305187
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
0 commit comments