1
0
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:
@amrit1207! 2019-10-11 09:19:24 +05:30
parent 4f165bf6df
commit cdaeb999c9

View File

@ -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]