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

a question about filePath.match(exclude) #75

Open
xsdream opened this issue Jun 18, 2021 · 2 comments
Open

a question about filePath.match(exclude) #75

xsdream opened this issue Jun 18, 2021 · 2 comments

Comments

@xsdream
Copy link

xsdream commented Jun 18, 2021

my exclude use function:
image

If the path is matched, then the previous judgment condition is true, and the execution goes to [filePath.match(exclude) !== null]
it will error!

image

@xsdream
Copy link
Author

xsdream commented Jun 18, 2021

match support function ?

@yuningjiang123
Copy link

I might have misunderstood, but shouldn't the if clause skip the subsequent judgement and just directly return true when "type.isFunction(exclude) && exclude(filePath)" is true?

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