Commit ab0d3a0
committed
fix: clean up regex escaping and remove unsupported brace from glob detection
- Use Biome-compatible `[.+^${}()|[\]\]` escaping in globMatch instead
of the unconventional `]`-first convention that triggers
noEmptyCharacterClassInRegex
- Remove `{` from isGlob detection regex — globMatch does not support
brace expansion, so patterns like `src/{a,b}.js` would be misdetected
as globs and fail to match
Impact: 2 functions changed, 7 affected1 parent 6cf191f commit ab0d3a0
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| |||
0 commit comments