Allow major.minor protoc versions
This commit is contained in:
parent
e186e47261
commit
3514d30f93
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ Function Get-ProtobufTag() {
|
|||
Function Add-Protoc() {
|
||||
param(
|
||||
[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
|
||||
)
|
||||
$protobuf_tag = Get-ProtobufTag
|
||||
|
|
|
|||
Loading…
Reference in a new issue