Allow major.minor protoc versions

This commit is contained in:
Shivam Mathur 2022-12-25 20:03:40 +05:30
parent e186e47261
commit 3514d30f93
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -20,7 +20,7 @@ Function Get-ProtobufTag() {
Function Add-Protoc() { Function Add-Protoc() {
param( param(
[Parameter(Mandatory = $true, Position = 0, HelpMessage = 'The PHP version to be installed')] [Parameter(Mandatory = $true, Position = 0, HelpMessage = 'The PHP version to be installed')]
[ValidatePattern('^latest$|^(v?)\d+\.\d+\.\d+$')] [ValidatePattern('^latest$|^(v?)\d+\.\d+(\.\d+)?$')]
[string] $protobuf_tag [string] $protobuf_tag
) )
$protobuf_tag = Get-ProtobufTag $protobuf_tag = Get-ProtobufTag