Fix version regex in Add-Extension

This commit is contained in:
Shivam Mathur 2024-07-01 22:34:55 +05:30 committed by GitHub
parent 2e947f1f69
commit 594bd591ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,7 +100,7 @@ Function Add-Extension {
$stability = 'stable',
[Parameter(Position = 2, Mandatory = $false)]
[ValidateNotNull()]
[ValidatePattern('^\d+(\.\d+){0,2}$')]
[ValidatePattern('^\d+(\.\d+){0,3}$')]
[string]
$extension_version = ''
)