Skip to content

Commit

Permalink
Merge pull request #2489 from a10kiloham/patch-3
Browse files Browse the repository at this point in the history
Add regex case use clarification
  • Loading branch information
dsander committed Feb 14, 2019
2 parents f775814 + 85c1c66 commit d58d002
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/agents/trigger_agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class TriggerAgent < Agent
The `type` can be one of #{VALID_COMPARISON_TYPES.map { |t| "`#{t}`" }.to_sentence} and compares with the `value`. Note that regex patterns are matched case insensitively. If you want case sensitive matching, prefix your pattern with `(?-i)`.
In any `type` including regex Liquid variables can be used normally. To search for just a word matching the concatenation of `foo` and variable `bar` would use `value` of `foo{{bar}}`. Note that note that starting/ending delimiters like `/` or `|` are not required for regex.
The `value` can be a single value or an array of values. In the case of an array, all items must be strings, and if one or more values match, then the rule matches. Note: avoid using `field!=value` with arrays, you should use `not in` instead.
By default, all rules must match for the Agent to trigger. You can switch this so that only one rule must match by
Expand Down

0 comments on commit d58d002

Please sign in to comment.