From 92a5484dfaf04ca78a94597f4f19fea633851fa2 Mon Sep 17 00:00:00 2001 From: Balaga Gayatri Date: Fri, 9 Sep 2022 16:39:37 +0530 Subject: [PATCH] [BUG FIX] Version pattern quickfix releases (#245) * Update Constants.js * Update Constants.ts --- lib/PowerShell/Constants.js | 2 +- src/PowerShell/Constants.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/PowerShell/Constants.js b/lib/PowerShell/Constants.js index 98f75ccf7..51d0a3a07 100644 --- a/lib/PowerShell/Constants.js +++ b/lib/PowerShell/Constants.js @@ -5,7 +5,7 @@ class Constants { exports.default = Constants; Constants.prefix = "az_"; Constants.moduleName = "Az.Accounts"; -Constants.versionPattern = /[0-9]\.[0-9]\.[0-9]/; +Constants.versionPattern = /[0-9]+\.[0-9]+\.[0-9]+/; Constants.AzureCloud = "AzureCloud"; Constants.Subscription = "Subscription"; Constants.ServicePrincipal = "ServicePrincipal"; diff --git a/src/PowerShell/Constants.ts b/src/PowerShell/Constants.ts index 9613db1d6..543226df4 100644 --- a/src/PowerShell/Constants.ts +++ b/src/PowerShell/Constants.ts @@ -1,7 +1,7 @@ export default class Constants { static readonly prefix: string = "az_"; static readonly moduleName: string = "Az.Accounts"; - static readonly versionPattern = /[0-9]\.[0-9]\.[0-9]/; + static readonly versionPattern = /[0-9]+\.[0-9]+\.[0-9]+/; static readonly AzureCloud: string = "AzureCloud"; static readonly Subscription: string = "Subscription"; @@ -10,4 +10,4 @@ export default class Constants { static readonly Success: string = "Success"; static readonly Error: string = "Error"; static readonly AzVersion: string = "AzVersion"; -} \ No newline at end of file +}