mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 21:14:09 +01:00
Use first-principles.
This commit is contained in:
parent
f264b4f7e8
commit
d96e09593f
|
|
@ -155,8 +155,12 @@ The different `kind`s of rule, in the order that they are checked, are:
|
||||||
1. **Content-specific rules (`content`).**
|
1. **Content-specific rules (`content`).**
|
||||||
These configure behaviour for (unencrypted) messages that match certain
|
These configure behaviour for (unencrypted) messages that match certain
|
||||||
patterns. Content rules take one parameter: `pattern`, that gives the
|
patterns. Content rules take one parameter: `pattern`, that gives the
|
||||||
glob pattern to match against. This is treated in the same way as
|
[glob-style pattern](/appendices#glob-style-matching) to match against.
|
||||||
`pattern` for `event_match` against a `key` of `content.body`.
|
The match is performed case-insensitively, and must match any substring of
|
||||||
|
the `content.body` property which starts and ends at a word boundary. A word
|
||||||
|
boundary is defined as the start or end of the value, or any character not
|
||||||
|
in the sets `[A-Z]`, `[a-z]`, `[0-9]` or `_`.The exact meaning of
|
||||||
|
"case insensitive" is defined by the implementation of the homeserver.
|
||||||
|
|
||||||
1. **Room-specific rules (`room`).**
|
1. **Room-specific rules (`room`).**
|
||||||
These rules change the behaviour of all messages for a given room. The
|
These rules change the behaviour of all messages for a given room. The
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue