From 93d2c427ad4cda8ded2c0895b36bd8e32e3b0154 Mon Sep 17 00:00:00 2001 From: David Refoua Date: Thu, 29 Mar 2018 01:18:57 +0430 Subject: [PATCH] respect powershell naming convention --- scripts/build.ps1 | 2 +- scripts/utils.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()]+\)$';