diff --git a/main.py b/main.py index f625cf7..574cdd7 100644 --- a/main.py +++ b/main.py @@ -115,7 +115,7 @@ def get_message_text() -> str: return nonlocal text - REPLACE_PATTERN = re.compile(rf'^\[{replace_name}\]', flags=re.IGNORECASE) + REPLACE_PATTERN = re.compile(rf'^\[{replace_name}\] ', flags=re.IGNORECASE) if category_name: text += f"\n{category_name}:\n\n"