1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Update util.py

Another typo
This commit is contained in:
DrBomb 2016-03-17 22:17:06 -04:30
parent 78d86752fb
commit 17184697ea

View File

@ -237,6 +237,6 @@ def extract_arguments(text):
:param text: String to extract the arguments from a command
:return: the arguments if `text` is a command (according to is_command), else None.
"""
regexp = re.("\/\w*(@\w*)*\s*([\s\S]*)",re.IGNORECASE)
regexp = re.compile("\/\w*(@\w*)*\s*([\s\S]*)",re.IGNORECASE)
result = regexp.match(text)
return result.group(2) if is_command(text) else None