From 1ef29353e10a4972624917c1812d0705f7914eea Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 24 Jan 2025 13:22:43 -0500 Subject: ci/diag.sh: Simplify sed expression --- .github/diag.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.github') diff --git a/.github/diag.sh b/.github/diag.sh index fe78be8..56b5fcb 100755 --- a/.github/diag.sh +++ b/.github/diag.sh @@ -9,8 +9,7 @@ set -eu filter() { - sed -E 's/^(([^:]*):([^:]*):([^:]*): (warning|error): (.*))$/::\5 file=\2,line=\3,col=\4,title=Compiler \5::\6\ -\1/' + sed -En 'p; s/^([^:]*):([^:]*):([^:]*): (warning|error): (.*)$/::\4 file=\1,line=\2,col=\3,title=Compiler \4::\5/p' } exec "$@" > >(filter) 2> >(filter >&2) -- cgit v1.2.3