1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-22 04:48:57 +00:00

Fix regex

This commit is contained in:
dhilipsiva 2017-02-09 08:52:20 +05:30
parent 7f9025c7ad
commit 8a8ade1e6b
No known key found for this signature in database
GPG Key ID: D3A33A90ADCDC5BF

View File

@ -19,6 +19,6 @@ def get_new_command(command):
if no_website in command.stderr:
return ['hostscli websites']
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']
return replace_command(command, misspelled_command, commands)