mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-31 15:12:20 +00:00 
			
		
		
		
	Fix regex
This commit is contained in:
		| @@ -19,6 +19,6 @@ def get_new_command(command): | |||||||
|     if no_website in command.stderr: |     if no_website in command.stderr: | ||||||
|         return ['hostscli websites'] |         return ['hostscli websites'] | ||||||
|     misspelled_command = re.findall( |     misspelled_command = re.findall( | ||||||
|         r'Error: No such command "(.*)"', command.stderr)[0] |         r'Error: No such command ".*"', command.stderr)[0] | ||||||
|     commands = ['block', 'unblock', 'websites', 'block_all', 'unblock_all'] |     commands = ['block', 'unblock', 'websites', 'block_all', 'unblock_all'] | ||||||
|     return replace_command(command, misspelled_command, commands) |     return replace_command(command, misspelled_command, commands) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user