mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-30 06:34:09 +00:00
#702: Make match in php_s rule more strict
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
from thefuck.utils import replace_argument, for_app
|
from thefuck.utils import replace_argument, for_app
|
||||||
|
|
||||||
|
|
||||||
@for_app('php')
|
@for_app('php', at_least=2)
|
||||||
def match(command):
|
def match(command):
|
||||||
return " -s " in command.script
|
return ('-s' in command.script_parts
|
||||||
|
and command.script_parts[-1] != '-s')
|
||||||
|
|
||||||
|
|
||||||
def get_new_command(command):
|
def get_new_command(command):
|
||||||
|
|||||||
Reference in New Issue
Block a user