mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
"
This commit is contained in:
parent
6e813e20c9
commit
2edf88abc5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue