mirror of
https://github.com/shivammathur/setup-php.git
synced 2026-01-12 13:51:12 +07:00
Fix version regex in Add-Extension
This commit is contained in:
@@ -100,7 +100,7 @@ Function Add-Extension {
|
|||||||
$stability = 'stable',
|
$stability = 'stable',
|
||||||
[Parameter(Position = 2, Mandatory = $false)]
|
[Parameter(Position = 2, Mandatory = $false)]
|
||||||
[ValidateNotNull()]
|
[ValidateNotNull()]
|
||||||
[ValidatePattern('^\d+(\.\d+){0,2}$')]
|
[ValidatePattern('^\d+(\.\d+){0,3}$')]
|
||||||
[string]
|
[string]
|
||||||
$extension_version = ''
|
$extension_version = ''
|
||||||
)
|
)
|
||||||
@@ -257,4 +257,4 @@ Function Disable-AllShared() {
|
|||||||
# Function to handle request to add PECL.
|
# Function to handle request to add PECL.
|
||||||
Function Add-Pecl() {
|
Function Add-Pecl() {
|
||||||
Add-Log $tick "PECL" "Use extensions input to setup PECL extensions on windows"
|
Add-Log $tick "PECL" "Use extensions input to setup PECL extensions on windows"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user