mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
Fix regex replace (#24525)
This commit is contained in:
@@ -57,7 +57,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/g, '').replace(/ /g, '').replace(/\*/g, ''));
|
||||
} else {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user