Skip to content

Commit 0a9e00d

Browse files
committed
Fix JSON output formatting in HTML validation log
1 parent 319e602 commit 0a9e00d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
if (.messages|length==0) then "Geen HTML-validatiefouten."
3232
else
3333
.messages[]
34-
| "[\(.type|ascii_upcase)] regel \(.lastLine // \"?\"):\(.lastColumn // \"?\") - \((.message // \"\") | gsub(\"\\s+\";\" \"))"
34+
| "[\(.type|ascii_upcase)] regel \(.lastLine // "?"):\(.lastColumn // "?") - \((.message // "") | gsub("\\s+";" "))"
3535
end
3636
' $CHECK_DIR/html-validation.json | tee $CHECK_DIR/html-validation.log
3737
3838
jq -r '
3939
def esc: gsub("%";"%25") | gsub("\r";"%0D") | gsub("\n";"%0A");
4040
if (.messages|length>0) then
4141
.messages[]
42-
| "::error file=snapshot.html,line=\(.lastLine // 1),col=\(.lastColumn // 1)::[\(.type|ascii_upcase)] \((.message // \"\") | esc)"
42+
| "::error file=snapshot.html,line=\(.lastLine // 1),col=\(.lastColumn // 1)::[\(.type|ascii_upcase)] \((.message // "") | esc)"
4343
else empty end
4444
' $CHECK_DIR/html-validation.json
4545

0 commit comments

Comments
 (0)