mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 21:08:48 +00:00
Fix regex
This commit is contained in:
parent
7f9025c7ad
commit
8a8ade1e6b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user