From a964af7e9534edae3808acde97de054c3c6dde22 Mon Sep 17 00:00:00 2001 From: Joseph Frazier <1212jtraceur@gmail.com> Date: Wed, 5 Oct 2016 10:55:49 -0400 Subject: [PATCH] ag_literal.py: use `endswith()` rather than `in` https://github.com/nvbn/thefuck/pull/561#discussion_r81898499 --- thefuck/rules/ag_literal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/rules/ag_literal.py b/thefuck/rules/ag_literal.py index d36d698e..a07ae07a 100644 --- a/thefuck/rules/ag_literal.py +++ b/thefuck/rules/ag_literal.py @@ -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):