# Use less generic globs for JSONC to avoid overmatching \(\#45162\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/c4f8f2fbf4b68c6f39279fc99ef8ceea74891588)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: c4f8f2fbf4b68c6f39279fc99ef8ceea74891588

Requested commit: c4f8f2fbf4b68c6f39279fc99ef8ceea74891588

Commit: c4f8f2fbf4b68c6f39279fc99ef8ceea74891588

Tree: 3468465e9f6f41dab10626e540fe033122f537ef

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Use less generic globs for JSONC to avoid overmatching (#45162)

Otherwise, all *.json files under `zed` directory will be matched as
JSONC, e.g `zed/crates/vim/test_data/test_a.json` which is not right.
On top, `globset` considers that `zed/crates/vim/test_data/test_a.json`
matches `**/zed/*.json` glob (!).

Release Notes:

- N/A
```

## Parents

- [52c7447106320442be576f3d55a1410259da8046](https://git.cafe/gitcafe/zed/commit/52c7447106320442be576f3d55a1410259da8046?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/c4f8f2fbf4b68c6f39279fc99ef8ceea74891588?format=markdown)
