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)