Skip to content

Commit 176d511

Browse files
committed
(fix) Accounts for NFR edge case
1 parent 42cdc65 commit 176d511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Create-ChocoLicensePkg.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Write-Warning "If there is is a note about invalid license above, you're going t
5454
[xml]$licenseXml = Get-Content -Path $LicensePath
5555
$licenseExpiration = [datetimeoffset]::Parse("$($licenseXml.SelectSingleNode('/license').expiration) +0")
5656
$null = $licenseXml.license.name -match "(?<=\[).*(?=\])"
57-
$licenseNodeCount = $Matches.Values -replace '\[]',''
57+
$licenseNodeCount = $Matches.Values -replace '\s[A-Za-z]+',''
5858

5959
if ($licenseExpiration -lt [datetimeoffset]::UtcNow) {
6060
Write-Warning "THE LICENSE FILE AT '$LicensePath' is EXPIRED. This is the file used by this script to generate this package, not at '$licensePackageFolder'"

0 commit comments

Comments
 (0)