Skip to content

Commit 1f90d93

Browse files
committed
Corrected regex and added AL-Go prefix to debug messages.
1 parent d7e1ec3 commit 1f90d93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Actions/.Modules/DebugLogHelper.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ function OutputDebugFunctionCall {
4646

4747
OutputDebug "Function '$callerName' called with parameters:"
4848

49-
if ($argString -match '^\{(.+)\}$') {
49+
if ($argString -match '^\{(.*)\}$') {
5050
$inner = $matches[1]
5151

5252
# Match key=value pairs, allowing for quoted strings with commas
5353
$pattern = '(?<key>\w+)\s*=\s*(?<value>(?:(?!,\s*\w+\s*=).)+)'
5454
$matches = [regex]::Matches($inner, $pattern)
5555

5656
if ($matches.Count -eq 0) {
57-
OutputDebug "No parameters found."
57+
OutputDebug "None"
5858
}
5959
foreach ($match in $matches) {
6060
$key = $match.Groups['key'].Value
@@ -242,7 +242,7 @@ function OutputDebug {
242242
Write-Host $message
243243
}
244244
else {
245-
Write-Host "::Debug::$message"
245+
Write-Host "::Debug::[AL-Go]$message"
246246
}
247247
}
248248

0 commit comments

Comments
 (0)