push: Fix word matching without wildcards

Don't match non-ASCII alphanumeric characters
This commit is contained in:
Kévin Commaille 2022-06-24 14:37:52 +02:00 committed by Kévin Commaille
parent d192184b3c
commit 1e220a05bf
2 changed files with 3 additions and 3 deletions

View File

@ -4,8 +4,8 @@ Bug fixes:
* Expose `MatrixIdError`, `MatrixToError`, `MatrixUriError` and `MxcUriError` at * Expose `MatrixIdError`, `MatrixToError`, `MatrixUriError` and `MxcUriError` at
the crate root the crate root
* Allow wildcards for push conditions on `content.body` * Fix matching of `event_match` condition
* The spec clarified the behavior of the `event_match` condition: * The spec clarified its behavior:
<https://github.com/matrix-org/matrix-spec-proposals/pull/3690> <https://github.com/matrix-org/matrix-spec-proposals/pull/3690>
Breaking changes: Breaking changes:

View File

@ -155,7 +155,7 @@ trait CharExt {
impl CharExt for char { impl CharExt for char {
fn is_word_char(&self) -> bool { fn is_word_char(&self) -> bool {
self.is_alphanumeric() || *self == '_' self.is_ascii_alphanumeric() || *self == '_'
} }
} }