-
Notifications
You must be signed in to change notification settings - Fork 5
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 issue with MiddleSlash replacer #17
Fix issue with MiddleSlash replacer #17
Conversation
Codecov Report
@@ Coverage Diff @@
## main #17 +/- ##
=======================================
Coverage 95.55% 95.55%
=======================================
Files 4 4
Lines 135 135
=======================================
Hits 129 129
Misses 6 6
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again!
Pull Request Quantified (Extra Small)This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
Awesome! Could you publish a new version? I have been looking for a good library for gitignore for a quite time so I was happy to find this one. I stumbled on https://github.com/markashleybell/MAB.DotIgnore but the behavior differs from the git command line. I really like that you're testing against |
@jairbubbles it's published Yes I saw that one too, but at that point for some reason I didn't like it. I assumed |
@goelhardik For the |
As replacers are applied one after the other, the
/
added from a previous replacer (NonLeadingSingleStar
) was incorrectly being detected by theMiddleSlash
replacer and it added a^
at the beginning of the pattern.foo*
=>^foo[^/]*(/.*)?$
foo*
=>foo[^/]*(/.*)?$