mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-20 20:09:07 +00:00
ag_literal.py: use endswith()
rather than in
https://github.com/nvbn/thefuck/pull/561#discussion_r81898499
This commit is contained in:
parent
77fc021a6c
commit
a964af7e95
@ -3,7 +3,7 @@ from thefuck.utils import for_app
|
||||
|
||||
@for_app('ag')
|
||||
def match(command):
|
||||
return 'run ag with -Q' in command.stderr
|
||||
return command.stderr.endswith('run ag with -Q\n')
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
|
Loading…
x
Reference in New Issue
Block a user