push: Fix word matching without wildcards
Don't match non-ASCII alphanumeric characters
This commit is contained in:
parent
d192184b3c
commit
1e220a05bf
@ -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:
|
||||||
|
@ -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 == '_'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user