aboutsummaryrefslogtreecommitdiff
path: root/markov
diff options
context:
space:
mode:
Diffstat (limited to 'markov')
-rw-r--r--markov/markov.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markov/markov.py b/markov/markov.py
index c7e980f..1819b12 100644
--- a/markov/markov.py
+++ b/markov/markov.py
@@ -92,7 +92,7 @@ class Markov(commands.Cog):
+ [
token
for token in re.findall(
- r"[\w']+|[\.,!?\/]|<:\w+:\d+>|<#\d+>|<@\d+>", content
+ r"[\w']+|[\.,!?\/;]|<:\w+:\d+>|<#\d+>|<@\d+>", content
)
if len(token) <= MAX_TOKEN_LENGTH
]
@@ -459,7 +459,7 @@ class Markov(commands.Cog):
return next_token, frequency
# NOTE: if changing PUNCTUATION, also change the regex in process_message() with the corresponding note
- PUNCTUATION = ".,!?/"
+ PUNCTUATION = r".,!?/;"
member_id = member.id if member else None
result = ""
token = ""