Open aurovrata opened 6 years ago
I haven't looked at this code in a very long time, but I believe we are using minimatch and that library has syntax to support this use case.
Here is the docs for minimatch: https://github.com/isaacs/minimatch
Ingoring logic happens here: https://github.com/benjaminRomano/todo-manager/blob/master/lib/regexMatcherUtil.coffee#L100
thanks, apparently minimatch should be able to accept -ve patterns, I tried
**/wp-content(?!\/themes\/)/**
but it doesn't work
The version of minimatch in this package is 2.0.10
which is now 3 years old. It's very possible that this functionality doesn't exist in this version.
Please feel free to try bumping up that version and creating a PR if it works
Shall try that
On 24 Mar 2018 12:24 a.m., "Benjamin Romano" notifications@github.com wrote:
The version of minimatch in this package is 2.0.10 which is now 3 years old. It's very possible that this functionality doesn't exist in this version.
Please feel free to try bumping up that version and creating a PR if it works
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/benjaminRomano/todo-manager/issues/16#issuecomment-375766285, or mute the thread https://github.com/notifications/unsubscribe-auth/ACo28RsCcE6PwUxgpmSd_XSl_a57chivks5thUTUgaJpZM4S5HEP .
I'd like to ignore a general folder,
**/wp-content/**
but retain a sub-folder,
**/wp-content/themes/**