Open xsdream opened 3 years ago
my exclude use function:
If the path is matched, then the previous judgment condition is true, and the execution goes to [filePath.match(exclude) !== null] it will error!
match support function ?
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?
my exclude use function:![image](https://user-images.githubusercontent.com/31870384/122541336-1acad080-d05c-11eb-95cb-25b4da8bf96c.png)
If the path is matched, then the previous judgment condition is true, and the execution goes to [filePath.match(exclude) !== null] it will error!