Closed dhilgarth closed 9 months ago
With the attached .gitignore, the following code will return false
false
const ig = ignore.default(); ig.add(fs.readFileSync('.gitignore').toString()); console.log(ig.ignores('node_modules'));
I believe it's because of the BOM at the beginning of the file.
gitignore.zip
confirmed. Nice catch buddy.
I will do a complete tests for all zero-width chars
Landed in 5.3.1
5.3.1
Awesome, thanks!
With the attached .gitignore, the following code will return
false
I believe it's because of the BOM at the beginning of the file.
gitignore.zip