diff --git a/CHANGELOG.md b/CHANGELOG.md index f985868..660d36c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ Procedure when bumping the version number: - Respect colon-delimited emoji when calculating nick hue - Display colon-delimited emoji in nicks and messages +### Fixed +- Mentions not being stopped by `>` + ## v0.5.2 - 2023-01-14 ### Added diff --git a/src/euph/small_message.rs b/src/euph/small_message.rs index 1aec5f8..4d2f4f4 100644 --- a/src/euph/small_message.rs +++ b/src/euph/small_message.rs @@ -13,8 +13,9 @@ use super::util; fn nick_char(ch: char) -> bool { // Closely following the heim mention regex: // https://github.com/euphoria-io/heim/blob/978c921063e6b06012fc8d16d9fbf1b3a0be1191/client/lib/stores/chat.js#L14-L15 + // `>` has been experimentally confirmed to delimit mentions as well. match ch { - ',' | '.' | '!' | '?' | ';' | '&' | '<' | '\'' | '"' => false, + ',' | '.' | '!' | '?' | ';' | '&' | '<' | '>' | '\'' | '"' => false, _ => !ch.is_whitespace(), } }