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