@@ -155,8 +155,12 @@ The different `kind`s of rule, in the order that they are checked, are:
1551551 . ** Content-specific rules (` content ` ).**
156156 These configure behaviour for (unencrypted) messages that match certain
157157 patterns. Content rules take one parameter: ` pattern ` , that gives the
158- glob pattern to match against. This is treated in the same way as
159- ` pattern ` for ` event_match ` .
158+ [ glob-style pattern] ( /appendices#glob-style-matching ) to match against.
159+ The match is performed case-insensitively, and must match any substring of
160+ the ` content.body ` property which starts and ends at a word boundary. A word
161+ boundary is defined as the start or end of the value, or any character not
162+ in the sets ` [A-Z] ` , ` [a-z] ` , ` [0-9] ` or ` _ ` .The exact meaning of
163+ "case insensitive" is defined by the implementation of the homeserver.
160164
1611651 . ** Room-specific rules (` room ` ).**
162166 These rules change the behaviour of all messages for a given room. The
@@ -264,18 +268,13 @@ This is a glob pattern match on a field of the event. Parameters:
264268- ` key ` : The dot-separated path of the property of the event to match, e.g.
265269 ` content.body ` .
266270
267- - ` pattern ` : The glob-style pattern to match against.
271+ - ` pattern ` : The [ glob-style pattern] ( /appendices#glob-style-matching ) to match against.
268272
269273The match is performed case-insensitively, and must match the entire value of
270274the event field given by ` key ` (though see below regarding ` content.body ` ). The
271275exact meaning of "case insensitive" is defined by the implementation of the
272276homeserver.
273277
274- Within ` pattern ` :
275-
276- * The character ` * ` matches zero or more characters.
277- * ` ? ` matches exactly one character.
278-
279278If the property specified by ` key ` is completely absent from the event, or does
280279not have a string value, then the condition will not match, even if ` pattern `
281280is ` * ` .
0 commit comments