kaelzhang / node-ignore

🔍 node-ignore is the manager and filter for .gitignore rules, the one used by eslint, prettier and many others.
Other
440 stars 45 forks source link

"*.app" ignores "Notificator.app/Contents/PkgInfo" #95

Closed Basit-qc closed 1 year ago

Basit-qc commented 1 year ago

I am trying to ignore patterns that end with .app Sample pattern is: notificator/Notificator.app/Contents/PkgInfo which should not be ignored.

>>> const ig = ignore().add('*.app');
>>> ig.ignores('notificator/Notificator.app/Contents/PkgInfo'));
// Actual output = true
// Expected output = false

Kindly let me know if I am not using it correctly, thanks

Basit-qc commented 1 year ago

It seems like it follows .gitignore rules, unlike minimatch. In that aspect it is working fine. Closing this issue.

kaelzhang commented 1 year ago

It seems like it follows .gitignore rules, unlike minimatch. In that aspect it is working fine. Closing this issue.

Yes, ur right