-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support negated condition in match conditions (#570)
* feat: support negated condition in match conditions Use `!` suffix in variable name to negate a condition. Use `:except:` to negate a combination of conditions in a map. Add `:present:` for checking existence of a key in a map. Negating a condition is useful since Golang regular expression doesn't support negative lookahead. Sometime it is needed to negate parts of the regex condition. * docs: matching condition special keywords
- Loading branch information
1 parent
1f984b0
commit efbffcc
Showing
3 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters