mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-30 06:34:09 +00:00
ag_literal.py: use endswith() rather than in
https://github.com/nvbn/thefuck/pull/561#discussion_r81898499
This commit is contained in:
@@ -3,7 +3,7 @@ from thefuck.utils import for_app
|
|||||||
|
|
||||||
@for_app('ag')
|
@for_app('ag')
|
||||||
def match(command):
|
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):
|
def get_new_command(command):
|
||||||
|
|||||||
Reference in New Issue
Block a user