From 8a8ade1e6b327a09301e9801e630ddedfcf5c376 Mon Sep 17 00:00:00 2001 From: dhilipsiva Date: Thu, 9 Feb 2017 08:52:20 +0530 Subject: [PATCH] Fix regex --- thefuck/rules/hostscli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/rules/hostscli.py b/thefuck/rules/hostscli.py index d62b6437..9c82d7ae 100644 --- a/thefuck/rules/hostscli.py +++ b/thefuck/rules/hostscli.py @@ -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)