mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 12:06:04 +00:00
git_flag_after_filename: Call match() instead of copying its body
This commit is contained in:
parent
68df7154e5
commit
f1fab0dbb2
@ -14,7 +14,7 @@ def get_new_command(command):
|
||||
command_parts = command.script_parts[:]
|
||||
|
||||
# find the bad flag
|
||||
bad_flag = re.search(error_pattern, command.output).group(1)
|
||||
bad_flag = match(command).group(1)
|
||||
bad_flag_index = command_parts.index(bad_flag)
|
||||
|
||||
# find the filename
|
||||
|
Loading…
x
Reference in New Issue
Block a user