Add support for negating route filter patterns with !
#559
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for filtering out certain route names by prefixing a pattern with
!
. If all provided patterns are negated, the patterns are treated as 'reject' rules, starting with all routes included by default and using the patterns to filter them out, which is howexcept
works now.Addresses #520 and #555 because groups now support both including and excluding routes. The existing functionality behaves like
only
, so the key addition would be a way to exclude routes, which this PR accomplishes:This does make the top-level
except
key a bit redundant, but that lines up nicely with my plan in v2 to combine 'only', 'except', and 'groups' into one feature 馃憖@YeeJiaWei thoughts? Your original example in the discussion would now look like this:
Closes #555.