mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	git_flag_after_filename: Call match() instead of copying its body
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user