Skip to content

directory ending with / not always correctly ignored #77

@SamVerschueren

Description

@SamVerschueren

Hi!

Thanks for this awesome package! I think I might found a small bug when using it.

With the following .gitignore contents

c/*
!c/bar.js

Running git check-ignore -v c/ results in

.gitignore:1:c/*        c/

Using ignore.test('c/') indicates that it's not ignored. This package correctly indicates that c/ is ignored if I change c/* in the .gitignore file to c/.

Kind regards
Sam

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions