From d294060ef3e77bbaa550a4d4f68d1c1bb3f1d13d Mon Sep 17 00:00:00 2001 From: KirillGutyrchik Date: Mon, 29 Apr 2024 16:37:19 +0300 Subject: [PATCH] Fix regex --- .github/workflows/msbuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index e3c89310..876e9bbf 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -211,7 +211,7 @@ jobs: run: | echo $(ls -Force) $i = 1 - $changelog = foreach ($match in [Regex]::Matches($(git log $((git tag --sort=committerdate | Select-Object -Last 2) -join "..")), '```ChangeLog([\w\W]+?)```')) { + $changelog = foreach ($match in [Regex]::Matches($(git log $((git tag --sort=committerdate | Select-Object -Last 2) -join "..")), '```ChangeLog[\r\n\s]+([\w\W]+?)[\r\n\s]+```')) { echo "$($i). $($match.Groups[1].Value);" $i = $i + 1 }