Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Commit b66c4b5

Browse files
committed
Fix regex for testing change log version
1 parent d38b293 commit b66c4b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Meta/Manifest.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Describe 'Module manifest' {
4545
$script:changelogVersion = $null
4646
It "has a valid version in the changelog" {
4747
foreach ($line in (Get-Content $changelogPath)) {
48-
if ($line -match "^\D*(?<Version>(\d+\.){1,3}\d+)") {
48+
if ($line -match "^##\s\[(?<Version>(\d+\.){1,3}\d+)\]") {
4949
$script:changelogVersion = $matches.Version
5050
break
5151
}

0 commit comments

Comments
 (0)