From 465c960a1fd99c995820c86500ef3f9e7b3a9628 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 10 Apr 2019 16:05:03 +0200 Subject: [PATCH] Aggiunti i due punti (e altri caratteri) a mm! :O --- telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambot.py b/telegrambot.py index f769dd6e..3a8030be 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -365,7 +365,7 @@ def cmd_mm(bot: telegram.Bot, update: telegram.Update, session: db.Session): if user is None: reply(bot, update, strings.LINK.ERRORS.ROYALNET_NOT_LINKED) return - match = re.match(r"/(?:mm|matchmaking)(?:@royalgamesbot)?(?: (?:([0-9]+)-)?([0-9]+))? (?:per )?([A-Za-z0-9!\-_. ]+)(?:.*\n(.+))?", + match = re.match(r"/(?:mm|matchmaking)(?:@royalgamesbot)?(?: (?:([0-9]+)-)?([0-9]+))? (?:per )?([A-Za-z0-9!\-_.:/\\+()[\]{} ]+)(?:.*\n(.+))?", update.message.text) if match is None: reply(bot, update, strings.MATCHMAKING.ERRORS.INVALID_SYNTAX)