mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 03:41:06 +07:00
Fix version regex in Add-Extension
This commit is contained in:
parent
2e947f1f69
commit
594bd591ec
@ -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 = ''
|
||||
)
|
||||
@ -257,4 +257,4 @@ Function Disable-AllShared() {
|
||||
# Function to handle request to add PECL.
|
||||
Function Add-Pecl() {
|
||||
Add-Log $tick "PECL" "Use extensions input to setup PECL extensions on windows"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user