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

add support to util.pathmatch for matching the start of a string #600

Merged
merged 1 commit into from
Aug 19, 2018

Conversation

briancappello
Copy link
Contributor

This PR adds support to util.pathmatch for forcing the match of the start of a string. This is useful for example if you want to place a babel.cfg file in a subdirectory and only extract messages from under that directory. The added (equivalent) syntax looks like so:

[python: ./**.py]
[python: ^**.py]

@codecov-io
Copy link

codecov-io commented Aug 15, 2018

Codecov Report

Merging #600 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #600      +/-   ##
==========================================
+ Coverage   90.29%   90.31%   +0.01%     
==========================================
  Files          24       24              
  Lines        4123     4129       +6     
==========================================
+ Hits         3723     3729       +6     
  Misses        400      400
Impacted Files Coverage Δ
babel/util.py 92.4% <100%> (+0.29%) ⬆️

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 a865f8e...4114023. Read the comment docs.

@akx
Copy link
Member

akx commented Aug 19, 2018

Looks good. Thank you!

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

Successfully merging this pull request may close these issues.

None yet

3 participants