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.
Parameters
Section titled “Parameters”pathSegments
Section titled “pathSegments”readonly string[]
patternSegments
Section titled “patternSegments”readonly string[]
dialect?
Section titled “dialect?”GlobDialect = "posix"
limits?
Section titled “limits?”Returns
Section titled “Returns”GlobPathMatch | null