broadened regex

This commit is contained in:
Remy Moll 2023-11-18 12:59:03 +01:00
parent 8b7a318e6b
commit 724b17c4b7

@ -69,7 +69,7 @@ class JournalEntry(BaseModel):
"(" "("
"(((?<=(\.|\!|\?)\s)[A-Z])|(^[A-Z]))" # beginning of a sentence "(((?<=(\.|\!|\?)\s)[A-Z])|(^[A-Z]))" # beginning of a sentence
"([^\.\!\?])+" # any character being part of a sentence "([^\.\!\?])+" # any character being part of a sentence
"\:\)" # the smiley "((\:\))|😇|😈)" # the smiley
"([^\.\!\?])*" # continuation of sentence "([^\.\!\?])*" # continuation of sentence
"(\.|\!|\?|\,|$)" # end of the sentence "(\.|\!|\?|\,|$)" # end of the sentence
")" ")"