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

fix: fix dot directory in cwd #1

Merged
merged 1 commit into from
Jun 28, 2020
Merged

Conversation

czy88840616
Copy link
Member

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jun 28, 2020

Codecov Report

Merging #1 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master       #1   +/-   ##
=======================================
  Coverage   96.29%   96.29%           
=======================================
  Files           1        1           
  Lines          27       27           
  Branches        4        4           
=======================================
  Hits           26       26           
  Misses          1        1           
Impacted Files Coverage Δ
src/index.ts 96.29% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 643d7eb...eed56f5. Read the comment docs.

Copy link

@legendecas legendecas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM

const childs = globDirectory(resolvePath, isMatch, ignoreDirMatch, options);
result.push(...childs);
} else if(fileStat.isFile() && isMatch(resolvePath)) {
} else if(fileStat.isFile() && isMatch(resolvePath.replace(dirname, ''))) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly speaking, only starting part shall be stripped. It will be better if we put more constraints on this code snippet.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@czy88840616 czy88840616 merged commit 301fb5a into master Jun 28, 2020
@czy88840616 czy88840616 deleted the support_dot_directory branch June 28, 2020 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants