mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-14 14:48:49 +00:00
change in the code
This commit is contained in:
parent
4f165bf6df
commit
cdaeb999c9
@ -12,6 +12,6 @@ def match(command):
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
mistake = re.search(INVALID_CHOICE, command.output).group(0)
|
||||
options = re.findall(OPTIONS, command.output, flags=re.MULTILINE)
|
||||
return [replace_argument(command.script, mistake, o) for o in options]
|
||||
mi = re.search(INVALID_CHOICE, command.output).group(0)
|
||||
op = re.findall(OPTIONS, command.output, flags=re.MULTILINE)
|
||||
return [replace_argument(command.script, mi, k) for k in op]
|
||||
|
Loading…
x
Reference in New Issue
Block a user