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

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

Open
coreyfarrell opened this issue May 15, 2019 · 1 comment
Open

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

coreyfarrell opened this issue May 15, 2019 · 1 comment

Comments

@coreyfarrell
Copy link
Member

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.

@coreyfarrell coreyfarrell transferred this issue from istanbuljs/istanbuljs Oct 5, 2019
@pfedan
Copy link

pfedan commented Jun 27, 2022

@coreyfarrell
not really sure, but shouldn't the regex in

pathToCheck = relFile.replace(/^\.[\\/]/, ''); // remove leading './' or '.\'.
rather be ^\.[\\\/] (escaping the slash)?

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