From 0197cc7dd1c51456cb3b6b9ebe3e893194397923 Mon Sep 17 00:00:00 2001 From: Stephen <webmaster@scd31.com> Date: Sat, 8 Oct 2022 13:22:50 -0300 Subject: [PATCH] better reaction tokenization --- src/handlers/react.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/react.rs b/src/handlers/react.rs index b83c024..d586e92 100644 --- a/src/handlers/react.rs +++ b/src/handlers/react.rs @@ -42,7 +42,7 @@ impl LineHandler for ReactHandler { .content .chars() .map(|c| match c { - '!' | '?' | ',' | '.' => ' ', + '!' | '?' | ',' | '.' | '(' | ')' | '[' | ']' | '\n' | '\r' => ' ', _ => c, }) .group_by(|c| *c == ' '); -- GitLab