nomonic
    Preparing search index...

    Function isIgnored

    • Test whether a file path matches any of the compiled ignore patterns.

      A leading ./ prefix is automatically stripped before matching.

      Parameters

      • filePath: string

        The relative file path to test.

      • patterns: RegExp[]

        Compiled patterns from compilePattern.

      Returns boolean

      true if the path matches at least one pattern.