1
0
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:
Connor Martin 2020-03-30 10:09:39 -05:00
parent b40b84b3d3
commit fa4f0921ea

View File

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