From 0d8e2c57ba118130c51370494d20b5f63f0a1c04 Mon Sep 17 00:00:00 2001 From: EchoDevG <75668023+EchoDevG@users.noreply.github.com> Date: Sat, 2 Mar 2024 19:07:54 +0000 Subject: [PATCH] Update dot_remover.rs I promise lines 78-83 are all different characters, they're just weird and look the same --- src/events/dot_remover.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/events/dot_remover.rs b/src/events/dot_remover.rs index f05ca50..440c73d 100644 --- a/src/events/dot_remover.rs +++ b/src/events/dot_remover.rs @@ -74,6 +74,13 @@ const DOTS: [StrOrChar<&str>; 20] = [ StrOrChar::Char('.'), StrOrChar::Char('。'), StrOrChar::Char('܂'), + StrOrChar::Char('˳'), + StrOrChar::Char('݀'), + StrOrChar::Char('݂'), + StrOrChar::Char('ܼ'), + StrOrChar::Char('ٜ'), + StrOrChar::Char('ִ'), + StrOrChar::Char('ׅ'), ]; fn remove_whitespace_from_end(text: &str, dot: &StrOrChar<&str>) -> String { @@ -93,6 +100,8 @@ fn remove_whitespace_from_end(text: &str, dot: &StrOrChar<&str>) -> String { StrOrChar::Char('\u{200D}'), StrOrChar::Char('\u{200E}'), StrOrChar::Char('\u{200F}'), + StrOrChar::Char('\u{2060}'), + StrOrChar::Char('\u{180E}'), StrOrChar::Char('\u{3164}'), StrOrChar::Str(r"_[ \n]*_"), StrOrChar::Str(r"\|\|[ \n]*\|\|"),