1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
This commit is contained in:
Steffo 2019-03-05 10:30:09 +01:00
parent 6e813e20c9
commit 2edf88abc5

View file

@ -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)