Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IMinimatch

Hierarchy

  • IMinimatch

Index

Properties

comment

comment: boolean

True if the pattern is a comment.

empty

empty: boolean

True if the pattern is ""

negate

negate: boolean

True if the pattern is negated.

options

options: IOptions

The options supplied to the constructor.

pattern

pattern: string

The original pattern the minimatch object represents.

regexp

regexp: RegExp

A single regular expression expressing the entire pattern. Created by the makeRe method.

set

set: any[][]

A 2-dimensional array of regexp or string expressions.

Methods

Private braceExpand

  • braceExpand(pattern: string, options: IOptions): void
  • Deprecated. For internal use.

    Parameters

    Returns void

Private debug

  • debug(): void
  • Deprecated. For internal use.

    Returns void

Private make

  • make(): void
  • Deprecated. For internal use.

    Returns void

makeRe

  • Generate the regexp member if necessary, and return it. Will return false if the pattern is invalid.

    Returns RegExp

match

  • match(fname: string): boolean
  • Return true if the filename matches the pattern, or false otherwise.

    Parameters

    • fname: string

    Returns boolean

matchOne

  • matchOne(files: string[], pattern: string[], partial: boolean): boolean
  • Take a /-split filename, and match it against a single row in the regExpSet. This method is mainly for internal use, but is exposed so that it can be used by a glob-walker that needs to avoid excessive filesystem calls.

    Parameters

    • files: string[]
    • pattern: string[]
    • partial: boolean

    Returns boolean

Private parse

  • parse(pattern: string, isSub?: undefined | false | true): void
  • Deprecated. For internal use.

    Parameters

    • pattern: string
    • Optional isSub: undefined | false | true

    Returns void

Private parseNegate

  • parseNegate(): void
  • Deprecated. For internal use.

    Returns void