Skip to content

Commit 594bd59

Browse files
authored
Fix version regex in Add-Extension
1 parent 2e947f1 commit 594bd59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/extensions/add_extensions.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Function Add-Extension {
100100
$stability = 'stable',
101101
[Parameter(Position = 2, Mandatory = $false)]
102102
[ValidateNotNull()]
103-
[ValidatePattern('^\d+(\.\d+){0,2}$')]
103+
[ValidatePattern('^\d+(\.\d+){0,3}$')]
104104
[string]
105105
$extension_version = ''
106106
)
@@ -257,4 +257,4 @@ Function Disable-AllShared() {
257257
# Function to handle request to add PECL.
258258
Function Add-Pecl() {
259259
Add-Log $tick "PECL" "Use extensions input to setup PECL extensions on windows"
260-
}
260+
}

0 commit comments

Comments
 (0)