mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-14 06:38:32 +00:00
get rid of additional matched strings
This commit is contained in:
parent
b40b84b3d3
commit
fa4f0921ea
@ -14,5 +14,5 @@ def match(command):
|
||||
@git_support
|
||||
def get_new_command(command):
|
||||
broken_cmd = re.findall(r'Error: unknown command "([^"]*)" for "git-lfs"', command.output)[0]
|
||||
matched = get_all_matched_commands(command.output, ['Did you mean'])
|
||||
matched = get_all_matched_commands(command.output, ['Did you mean', ' for usage.'])
|
||||
return replace_command(command, broken_cmd, matched)
|
||||
|
Loading…
x
Reference in New Issue
Block a user