suppress the alert (#8007)

This commit is contained in:
Alan Ren
2019-10-24 20:13:32 -07:00
committed by GitHub
parent c5d427ebb1
commit d013b594b1

View File

@@ -60,7 +60,7 @@ export class AzCliTool extends ToolBase {
protected getVersionFromOutput(output: string): SemVer | undefined {
if (output && output.includes('azure-cli')) {
return new SemVer(output.split(EOL)[0].replace('azure-cli', '').replace(/ /g, '').replace('*', ''));
return new SemVer(output.split(EOL)[0].replace('azure-cli', '').replace(/ /g, '').replace('*', '')); //lgtm [js/incomplete-sanitization]
} else {
return undefined;
}