Skip to content

Commit

Permalink
Allow major.minor protoc versions
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Dec 25, 2022
1 parent e186e47 commit 3514d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/tools/protoc.ps1
Expand Up @@ -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
Expand Down

0 comments on commit 3514d30

Please sign in to comment.