Skip to content

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

Open

Description

@angelandy

.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)']

Activity

  1. angelandy commented on Jan 5, 2018

    @angelandy
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions