mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 09:39:01 +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):
|
def get_new_command(command):
|
||||||
mistake = re.search(INVALID_CHOICE, command.output).group(0)
|
mi = re.search(INVALID_CHOICE, command.output).group(0)
|
||||||
options = re.findall(OPTIONS, command.output, flags=re.MULTILINE)
|
op = re.findall(OPTIONS, command.output, flags=re.MULTILINE)
|
||||||
return [replace_argument(command.script, mistake, o) for o in options]
|
return [replace_argument(command.script, mi, k) for k in op]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user