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)