From 7576a456e436ef2f6ec615c7ad4a4bee8399c17b Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Thu, 14 Mar 2024 14:50:13 -0400 Subject: markov: process semicolons --- markov/markov.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'markov') 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 = "" -- cgit v1.2.3-57-g22cb