Merge 664346c348 into 62e0767c50
This commit is contained in:
commit
357aba69fe
|
|
@ -8,10 +8,10 @@ enabled_by_default = npm_available
|
|||
@for_app('npm')
|
||||
def match(command):
|
||||
return (any(part.startswith('ru') for part in command.script_parts)
|
||||
and 'npm ERR! missing script: ' in command.output)
|
||||
and 'npm ERR! Missing script: ' in command.output)
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
misspelled_script = re.findall(
|
||||
r'.*missing script: (.*)\n', command.output)[0]
|
||||
r'.*Missing script: "(.*)"\n', command.output)[0]
|
||||
return replace_command(command, misspelled_script, get_scripts())
|
||||
|
|
|
|||
Loading…
Reference in New Issue