Skip to content

matchGlobPath

matchGlobPath(pathSegments, patternSegments, dialect?, limits?): GlobPathMatch | null

Defined in: packages/format-glob/src/compile-glob-path.ts:181

Tests one path against one pattern, both given as segments.

A utility over compileGlobPath; compile once and reuse the matcher when testing many paths against the same pattern.

readonly string[]

readonly string[]

GlobDialect = "posix"

GlobLimits

GlobPathMatch | null