Skip to content

Commit

Permalink
fix changelog version and module version check
Browse files Browse the repository at this point in the history
New regex doesn't check for a valid date next to the version.
This allows for a version to be specified with an "unreleased" date.
  • Loading branch information
devblackops committed Sep 8, 2018
1 parent 0e51daa commit 902c498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Manifest.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Describe 'Module manifest' {
$script:changelogVersion = $null
It 'has a valid version in the changelog' {
foreach ($line in (Get-Content $changelogPath)) {
if ($line -match "^## \[(?<Version>(\d+\.){1,3}\d+)\] \d{4}-\d{2}-\d{2}") {
if ($line -match "^##\s\[(?<Version>(\d+\.){1,3}\d+)\]") {
$script:changelogVersion = $matches.Version
break
}
Expand Down

0 comments on commit 902c498

Please sign in to comment.