Merge pull request #272 from scorphus/issue-271-ls-lah
fix(rules.ls_lah): make sure script starts with ls
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
def match(command, settings):
|
||||
return 'ls' in command.script and not ('ls -' in command.script)
|
||||
return (command.script == 'ls'
|
||||
or command.script.startswith('ls ')
|
||||
and not ('ls -' in command.script))
|
||||
|
||||
|
||||
def get_new_command(command, settings):
|
||||
|
||||
Reference in New Issue
Block a user