1
0
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:
Joseph Frazier 2016-10-05 10:55:49 -04:00
parent 77fc021a6c
commit a964af7e95

View File

@ -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):