Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore option #35

Open
pascalduez opened this issue Aug 19, 2016 · 2 comments
Open

ignore option #35

pascalduez opened this issue Aug 19, 2016 · 2 comments

Comments

@pascalduez
Copy link

pascalduez commented Aug 19, 2016

Hi,

I can't seem to get the --ignore option to work with simple patterns whereas regexes do.
chokidar './src/**/*.js' -i '*-test.js' nope
chokidar './src/**/*.js' -i '/-test.js$/' yep

Probably missing something obvious.

@kristoferjoseph
Copy link

Ran into this as well. How does this work? Can you post some examples please?
Thank you kindly💕

@gabstv
Copy link

gabstv commented Feb 22, 2018

It seems that the ignore case flag was preventing my regex from working (even though an example with /i flag is described in --help)

Works:

chokidar '**/*.go' -d 1000 -t 15000 -c 'npm run godev:watch' -i '/_(?:sql2var|ffjson).go$/'

Fails:

chokidar '**/*.go' -d 1000 -t 15000 -c 'npm run godev:watch' -i '/_(?:sql2var|ffjson).go$/i'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants