Skip to content

Assistance with rule configuration #141

Answered by FoxxMD
MHFDoge asked this question in Q&A
Discussion options

You must be logged in to vote

Glad you got it figured out! Using plain text matching flairText with a list is fine but if you want to use regex you only need to enclose the string in forward slashses, no need for a regex property.

flairText: '/this|would|work/i'

Or it could be a list of regexes and regular strings

flairText:
  - 'this works'
  - '/so|does|this/i'
  - 'this is mixed'

Also just fyi you can use the author filter without the need for an author rule with authorIs on basically any other component in CM. The author rule is helpful if you wanted to combine the author filter with a bunch of other rules in different ways, like in a rule set. But generally its easier to use as a filter. Using your flair text aut…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@FoxxMD
Comment options

Answer selected by MHFDoge
@MHFDoge
Comment options

Comment options

You must be logged in to vote
2 replies
@FoxxMD
Comment options

@MHFDoge
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants