diff --git a/scripts/build.ps1 b/scripts/build.ps1 index d4c201c..099f857 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -65,7 +65,7 @@ Push-Location -Path $saveTo $sources = Get-Content $sourcesPath | Out-String | Convertfrom-Json # Get the version string -$Version = Get-Version-Str ($PSScriptRoot + '\..\' + 'CHANGELOG.md') +$Version = Get-VersionStr ($PSScriptRoot + '\..\' + 'CHANGELOG.md') # Check for requirements Ensure-Exists $sourcesPath diff --git a/scripts/utils.ps1 b/scripts/utils.ps1 index e98e83e..fc43d0e 100644 --- a/scripts/utils.ps1 +++ b/scripts/utils.ps1 @@ -62,7 +62,7 @@ function Digest-Hash($path) { return Invoke-Expression "md5sum $path" } -function Get-Version-Str($file) { +function Get-VersionStr($file) { # Define the regular expression to match the version string from changelog [regex]$regex = '^## \[(?[\w\-\.]+)\]\([^\n()]+\)\s+\([^\n()]+\)$';