sincecutoff.com
← all changes

ast-grep files/ignores support a case insensitive option

Introduced 2026-01-10 · score 0.93

HOW TO USE IT

When a rule should include or exclude paths regardless of case, configure its `files` or `ignores` list with a glob object and set `caseInsensitive: true`.

files: - glob: '<glob>' caseInsensitive: true
ignores: - glob: '<glob>' caseInsensitive: true

WHY THIS HELPS

Configure case-insensitive matching for files or ignores in an ast-grep workflow.

REQUIREMENTS AND LIMITATIONS

  • Version: 0.40.5
  • files: Array of glob patterns limiting which files a rule applies to; each item can be a string or an object with `glob` and `caseInsensitive`.
  • ignores: Array of glob patterns excluding files from a rule; each item can be a string or an object with `glob` and `caseInsensitive`.
  • glob (required): Pattern string in a glob object.
  • caseInsensitive: Whether glob matching is case insensitive; defaults to `false`.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card