From 0115a8fc72e9ae2287c8b54cb815c6220b0fd68f Mon Sep 17 00:00:00 2001 From: vrubel Date: Sat, 20 Jun 2026 08:32:33 +0000 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=20=D0=BC=D0=B0?= =?UTF-8?q?=D0=BA=D1=81=20=D1=82=D0=B0=D0=BA=D0=B6=D0=B5=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D0=BB=D0=B0=D1=82=D0=B8=D0=BD=D0=B8=D1=86=D0=B5=20(max)=20?= =?UTF-8?q?=D0=B2=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=D0=B4=D0=BD=D0=B5=D0=BC?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B5=D0=B4=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: