TypeScript API / contentia/storage / compileIgnoreList
Function: compileIgnoreList()
ts
function compileIgnoreList(patterns): IgnoreMatcher;Compile an ignore list into a function that reports whether a path matches any of its patterns.
Supports *, ?, ** segments, {a,b} alternatives, and \ escapes. Wildcards match dotfiles, matching is case-sensitive, and empty path segments (leading, trailing, or repeated /) are ignored. Blank patterns and patterns starting with # are skipped.
Parameters
| Parameter | Type |
|---|---|
patterns | readonly string[] |
Returns
Throws
Error when a pattern uses syntax this matcher doesn't support: negation (!pattern), character classes ([abc]), extglobs (@(a|b)), nested or comma-less brace groups (including ranges like {1..3}), or brace groups that expand to more than 256 patterns.