Skip to content

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.

readonly globSegments: 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.


readonly globstarSegments: number

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

How many ** segments the pattern holds.


readonly patternLength: number

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

How many segments the pattern holds.


readonly rightmostWildcard: boolean

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

Whether the pattern’s last segment is * or **.


readonly wildcardSegments: number

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

How many * segments the pattern holds.