respect powershell naming convention

This commit is contained in:
David Refoua 2018-03-29 01:18:57 +04:30
parent 624deec2f0
commit 93d2c427ad
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 = '^## \[(?<version>[\w\-\.]+)\]\([^\n()]+\)\s+\([^\n()]+\)$';