From 2edf88abc56e2fb012efe8f9b411d639cabdba70 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 5 Mar 2019 10:30:09 +0100 Subject: [PATCH] " --- telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambot.py b/telegrambot.py index 4740e782..131c045f 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -218,7 +218,7 @@ def cmd_balurage(bot: telegram.Bot, update: telegram.Update, session: db.Session def parse_diario(session: db.Session, text: str): - match = re.match(r'"?(.*)"? (?:—|-{1,2}) ?@?([A-Za-z0-9_]+)$', text) + match = re.match(r'"?([^"]+)"? (?:—|-{1,2}) ?@?([A-Za-z0-9_]+)$', text) if match is None: return None, text text_string = match.group(1)