Skip to content

Commit

Permalink
Merge pull request #11 from EchoDevG/Echo-updating-dot-defender
Browse files Browse the repository at this point in the history
Update dot_remover.rs
  • Loading branch information
Kile authored Mar 4, 2024
2 parents a035584 + 0d8e2c5 commit 9daf7aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/events/dot_remover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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]*\|\|"),
Expand Down

0 comments on commit 9daf7aa

Please sign in to comment.