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

Allow fileMask to take an array of extensions or wildcards/regex #17

Open
chambleton-pcty opened this issue Dec 11, 2023 · 1 comment
Open

Comments

@chambleton-pcty
Copy link

Hi -- this is a great utility! Could you update the fileMask and code to accept an array of extensions or wildcards/regex? For example, when searching for both *.ts and *.tsx, it'll only satisfy one or the other (not both). If this were an array, it would allow more flexible searching.

Thanks again!
Chris

@sankalpkataria
Copy link
Owner

Hi @chambleton-pcty , with version 3.3.2, fileMask options now accepts either a string or and array of string.
So, with 3.3.2 you should be able to pass ['*.ts', '*.tsx'] as well as '*.ts'.

Regards.

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