Skip to content

Regexes cannot be passed to FileList.exclude. #2

@paulbaumgart

Description

@paulbaumgart

Example of the problem:

> (new JAKE.FileList("*")).exclude(/(^|[\/\\])\.git([\/\\]|$)/)
TypeError: Result of expression 'aFunction.apply' [undefined] is not a function.

paulbaumgart/jake@6f3ac72655 fixes this bug, so instead you get:

> (new JAKE.FileList("*")).exclude(/(^|[\/\\])\.git([\/\\]|$)/)
bin lib LICENSE package.json README.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions