Skip to content

Commit 9d6cea6

Browse files
authored
Merge pull request #3831 from s2quake/fix/ci-installation-test-error
Fix ci installation test error
2 parents aa6c4a2 + fd78e25 commit 9d6cea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libplanet.Tools/bin/npm-test.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env pwsh
22
param (
33
[Parameter(Mandatory, Position=0, HelpMessage="Enter a version to download.")]
4-
[ValidatePattern("^([1-9][0-9]*|0)\.([1-9][0-9]*|0)\.([1-9][0-9]*|0)$")]
4+
[ValidatePattern("^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$")]
55
[string]
66
$Version
77
)

0 commit comments

Comments
 (0)