Supports Glob Expressions
Closed this issue · 4 comments
I suppose glob expression like *.scss
would be easier to write and understand compare to current regular expression like .+?\.scss
. So it would be great to support glob expression.
Think is a good idea, how would you differentiate between it beeing glob and regex?
I had a look around and thought we could do it in the mozilla style;
Regex identified, if there is the pattern: "match": "/{pattern}/{flags}"
, if this pattern does not occure, we could suspect the glob expression is preferred. What do you think?
Just add a new option like globMatch
, a globNotMatch
may be need or not because glob expression already support to exclude rules inside one expression.
It's fine to just leave this issue here because it's just my idea, nobody have gave any feedback.
True, that would keep the implementation simple.
Sure thing 👍, just loved the idea aswell 😁