codemix / gitignore-parser

A simple .gitignore parser for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple pattern fails to compile correctly

giltayar opened this issue · comments

If I compile('foo.txt'), it should accept('foo.txt'), but doesn't. It also does not accept('a/foo.txt').

@giltayar not using this plugin at the moment, but PRs welcome. This is happening because it expects that there's at least one negation (!somefile.txt) in the file, it should be really simple to fix but I won't have time to do it myself.