Skip to content

Commit 1718469

Browse files
committed
Update util.py
Another typo
1 parent 78d8675 commit 1718469

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎telebot/util.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,6 @@ def extract_arguments(text):
237237
:param text: String to extract the arguments from a command
238238
:return: the arguments if `text` is a command (according to is_command), else None.
239239
"""
240-
regexp = re.("\/\w*(@\w*)*\s*([\s\S]*)",re.IGNORECASE)
240+
regexp = re.compile("\/\w*(@\w*)*\s*([\s\S]*)",re.IGNORECASE)
241241
result = regexp.match(text)
242242
return result.group(2) if is_command(text) else None

0 commit comments

Comments
 (0)