blitz-research / monkey

Blitz Research Monkey Source
226 stars 59 forks source link

Support of "!" quantifier for data file filters #30

Closed devolonter closed 11 years ago

devolonter commented 11 years ago

In some cases it is necessary to allow all files, but exclude some. This patch allows to use “!” symbol for negative pattern.

Usage example: #IMAGE_FILES = "*.png|*.jpg|!*@hd.png|!*@hd.jpg"

blitz-research commented 11 years ago

Ok, finally got around to looking at this.

A couple of issues:

I've committed my own version of this with the basic 'rules':

Not sure if they're 'good' rules though - what do you think?

devolonter commented 11 years ago

I should have done more tests, sorry… Your basic rules do exactly the same what I wanted to do in my version. Also it seems that your version will work a little bit faster. So I think your version is the best solution. Thanks for that!