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

it doesn't work read .ignore regex from .gitignore #101

Open
angelandy opened this issue Jan 5, 2018 · 1 comment
Open

it doesn't work read .ignore regex from .gitignore #101

angelandy opened this issue Jan 5, 2018 · 1 comment

Comments

@angelandy
Copy link

angelandy commented Jan 5, 2018

.gitignore:

.uploader_config
.idea

and

def globers_to_regex(globers):
    return map(fnmatch.translate, globers)

can't not change to right regex

read from .gitignore
['.uploader_config', '.idea']

after changed:
['\.uploader\_config\Z(?ms)', '\.idea\Z(?ms)']

@angelandy
Copy link
Author

I notice that ,you are using fnmatch to translate into regex, but why not using fnmatch match instead?

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

1 participant