File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 3030
3131 [string ]$GitHubPackagesSource ,
3232
33- [bool ]$GitHubPackagesIncludeSymbols = $false
33+ [bool ]$GitHubPackagesIncludeSymbols = $false ,
34+
35+ [System.Text.RegularExpressions.RegexOptions ]$VersionRegexOptions = [System.Text.RegularExpressions.RegexOptions ]::Multiline
3436)
3537
3638$ErrorActionPreference = ' Stop'
@@ -93,7 +95,7 @@ if (-not $VersionStatic) {
9395 }
9496
9597 $fileContent = Get-Content $versionFilePath - Raw
96- $match = [regex ]::Match($fileContent , $VersionRegex )
98+ $match = [regex ]::Match($fileContent , $VersionRegex , $VersionRegexOptions )
9799 if (-not $match.Success -or -not $match.Groups [1 ].Value) {
98100 throw " Unable to extract version information using regex '$VersionRegex ' from '$versionFilePath '."
99101 }
You can’t perform that action at this time.
0 commit comments