Skip to content

Commit e2a3dfc

Browse files
committed
Fixed regex
The regular expression pattern \\([[\]`\>) is not valid. --> parsing "\\([[\]`\>)" - Unterminated [] set.
1 parent f577132 commit e2a3dfc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.build/buildPrep.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ foreach ($download in $downloads) {
137137
# Write-Information ('Installing: gpg4win-4.1.0.exe')
138138
# Start-Process -FilePath 'gpg4win-4.1.0.exe' -ArgumentList '/S' -Wait
139139

140-
Pop-Location
140+
Pop-Location

.build/buildPsake.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ task Docs {
369369
} elseif ($line -match '\\([[\]`\>])') {
370370
# https://regex101.com/r/pBXaJE/3
371371
Write-Host ('[PSAKE Docs] Editing:{1}{0}' -f $line, "`t") -ForegroundColor 'DarkMagenta'
372-
$newline = $line -replace '\\([[\]`\>)', '$1'
372+
$newline = $line -replace '\\([[\]`\>])', '$1'
373373
Write-Host ('{1}{1}>>{1}{0}' -f $newline, "`t") -ForegroundColor 'DarkMagenta'
374374
Write-Output $newline
375375
} else {
@@ -530,7 +530,7 @@ task GitHubTagDelete {
530530
}
531531
}
532532

533-
task DeployProGet {
533+
task RegisterProGet {
534534
$registerPSRepo = @{
535535
Name = 'PowerShell-ESE'
536536
SourceLocation = $env:PROGET_POWERSHELL_ESE_URL
@@ -540,7 +540,9 @@ task DeployProGet {
540540
Write-Host "[PSAKE DeployProGet] Register-PSRepository: $($registerPSRepo | ConvertTo-Json)" -ForegroundColor 'DarkMagenta'
541541
Register-PSRepository @registerPSRepo
542542
}
543+
}
543544

545+
task DeployProGet -Depends RegisterProGet {
544546
$publishModule = @{
545547
Path = ([IO.Path]::Combine($script:BuildOutput, $script:thisModuleName))
546548
NuGetApiKey = $env:PROGET_POWERSHELL_ESE

0 commit comments

Comments
 (0)