goelhardik / ignore

.gitignore based parser implemented in C# according to the .gitignore spec 2.29.2.
MIT License
50 stars 5 forks source link

Issue with pattern containing multiple dots #18

Closed jairbubbles closed 3 years ago

jairbubbles commented 3 years ago

Didn't have time to investigate more but this test is failing:

        [Fact]
        public void SimpleIgnore_Dotfiles_WithStar3() => GitBasedTest(
            @"""
*.mm.*
""",
            new[] { "file.mm", "commonFile.txt" });

"commonFile.txt" is ignored by the lib.

jairbubbles commented 3 years ago

Looks like the . are not properly escaped =>.*.mm.[^/]*(/.*)?$