Skip to content

Commit 8494d6f

Browse files
committed
Fixed regex in Scripts/BumpVersion.ps1 to handle multiple digits.
1 parent c189fe0 commit 8494d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/BumpVersion.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function BumpVersion([string] $currentVersion) {
9292
$versionParts = $currentVersion.split(".")
9393
$minor = [Int]($versionParts[1]) + 1
9494

95-
$versionPattern = "(\d)\.(\d)\.(\d)"
95+
$versionPattern = "(\d+)\.(\d+)\.(\d+)"
9696
$versionReplacePattern = '$1.'+$minor+'.$3'
9797

9898
$version = $currentVersion -replace $versionPattern, $versionReplacePattern

0 commit comments

Comments
 (0)