diff --git a/app/bot.py b/app/bot.py index e143f47..f1c50f5 100644 --- a/app/bot.py +++ b/app/bot.py @@ -73,7 +73,7 @@ def clean_text(text: str) -> str: text = text.strip() parts = re.split(r'(?<=[.!?])\s+', text) - if parts and re.search(r'макс', parts[-1], re.IGNORECASE): + if parts and re.search(r'макс|max', parts[-1], re.IGNORECASE): text = ' '.join(p.strip() for p in parts[:-1] if p.strip()) if text: