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:
Vladimir Iakovlev
2015-07-07 16:28:49 +03:00
2 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -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):