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

[Question] Can I use regex in the exclude option? #811

Open
mamaredo opened this issue Sep 4, 2023 · 1 comment
Open

[Question] Can I use regex in the exclude option? #811

mamaredo opened this issue Sep 4, 2023 · 1 comment

Comments

@mamaredo
Copy link

mamaredo commented Sep 4, 2023

Can the --exclude cli option use regular expressions?
This is just an example, but I am having trouble using regular expressions when I want to exclude stories that contain Hoge.
I don't know if I am specifying it incorrectly or if I can't use the regular expression in the first place.

not working😢

$ storycap --exclude \".*Hoge.*\"
@raDiesle
Copy link

raDiesle commented Sep 18, 2023

Storycap uses this library to match https://github.com/micromatch/nanomatch

So one example would be

storycap --exclude "Testing Purpose/**" "UI Testing/**"

@mamaredo

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

2 participants