From 724b17c4b7f72b6ab90e3f273c988fba9ec92840 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Sat, 18 Nov 2023 12:59:03 +0100 Subject: [PATCH] broadened regex --- bot/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/models.py b/bot/models.py index 6894243..b771058 100644 --- a/bot/models.py +++ b/bot/models.py @@ -69,7 +69,7 @@ class JournalEntry(BaseModel): "(" "(((?<=(\.|\!|\?)\s)[A-Z])|(^[A-Z]))" # beginning of a sentence "([^\.\!\?])+" # any character being part of a sentence - "\:\)" # the smiley + "((\:\))|😇|😈)" # the smiley "([^\.\!\?])*" # continuation of sentence "(\.|\!|\?|\,|$)" # end of the sentence ")"