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: improve regex path matching #90

Merged
merged 1 commit into from Mar 3, 2020
Merged

Conversation

sQVe
Copy link
Collaborator

@sQVe sQVe commented Mar 2, 2020

See https://regex101.com/r/SkaHYp/1/ for further details.

This closes #87.

@codecov
Copy link

codecov bot commented Mar 2, 2020

Codecov Report

Merging #90 into develop will not change coverage.
The diff coverage is 85.71%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #90   +/-   ##
========================================
  Coverage    90.99%   90.99%           
========================================
  Files           18       18           
  Lines          422      422           
  Branches       106      105    -1     
========================================
  Hits           384      384           
  Misses          38       38
Impacted Files Coverage Δ
src/index/generateTrees/printTree.ts 100% <100%> (ø) ⬆️
src/index/shared/findImports.ts 90% <83.33%> (ø) ⬆️

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 8d4305a...ff9b19b. Read the comment docs.

Copy link
Contributor

@waynevanson waynevanson left a comment

Choose a reason for hiding this comment

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

LGTM! 🔨

Watching that regex match is magical.

}
importPaths.push(matches[1] ?? matches[2]);
importPaths.push(matches[1]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Slick!

@sQVe sQVe merged commit 9502a6a into develop Mar 3, 2020
@sQVe sQVe deleted the fix/improve-regex-matching branch March 3, 2020 07:45
@github-actions
Copy link

github-actions bot commented Mar 4, 2020

🎉 This PR is included in version 0.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Destiny only treat import paths that start with a dot
4 participants