istanbuljs / test-exclude

test for inclusion or exclusion of paths using globs
ISC License
8 stars 12 forks source link

Investigate issue with `./` include/exclude paths. #35

Open coreyfarrell opened 5 years ago

coreyfarrell commented 5 years ago

I've seen a couple nyc bugs where configuration: {include: ['./lib/**']} does not work, it has to be changed to {include: ['lib/**']}. These two include arrays should produce identical results.

pfedan commented 2 years ago

@coreyfarrell not really sure, but shouldn't the regex in https://github.com/istanbuljs/test-exclude/blob/a5b1d07584109f5f553ccef97de64c6cbfca4764/index.js#L95 rather be ^\.[\\\/] (escaping the slash)?