#1047: Fix pip_unknown_command by using a less restrictive regex
Fix #1047
This commit is contained in:
@@ -12,8 +12,8 @@ def match(command):
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
broken_cmd = re.findall(r'ERROR: unknown command \"([a-z]+)\"',
|
||||
broken_cmd = re.findall(r'ERROR: unknown command "([^"]+)"',
|
||||
command.output)[0]
|
||||
new_cmd = re.findall(r'maybe you meant \"([a-z]+)\"', command.output)[0]
|
||||
new_cmd = re.findall(r'maybe you meant "([^"]+)"', command.output)[0]
|
||||
|
||||
return replace_argument(command.script, broken_cmd, new_cmd)
|
||||
|
||||
Reference in New Issue
Block a user