GlobPathMatch
GlobPathMatch =
object
Defined in: packages/format-glob/src/compile-glob-path.ts:21
How a path matched a pattern, in the terms a precedence ranking needs.
Every field is a property of the pattern rather than of the path, because a successful match visits each pattern segment exactly once — which is what makes compareGlobPathMatches a ranking of patterns rather than of matches that happen to share one.
Properties
Section titled “Properties”globSegments
Section titled “globSegments”
readonlyglobSegments:number
Defined in: packages/format-glob/src/compile-glob-path.ts:32
How many segments needed the glob dialect — neither * nor **, and not
plain text either.
globstarSegments
Section titled “globstarSegments”
readonlyglobstarSegments:number
Defined in: packages/format-glob/src/compile-glob-path.ts:26
How many ** segments the pattern holds.
patternLength
Section titled “patternLength”
readonlypatternLength:number
Defined in: packages/format-glob/src/compile-glob-path.ts:38
How many segments the pattern holds.
rightmostWildcard
Section titled “rightmostWildcard”
readonlyrightmostWildcard:boolean
Defined in: packages/format-glob/src/compile-glob-path.ts:35
Whether the pattern’s last segment is * or **.
wildcardSegments
Section titled “wildcardSegments”
readonlywildcardSegments:number
Defined in: packages/format-glob/src/compile-glob-path.ts:23
How many * segments the pattern holds.