X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ftest-lib.sh;h=cb1ca973aa16d82b3c52cc2b7834d977887567a2;hb=4e3a1b24ad4ee3fc7dc21a8b8f39c41202d6b0a5;hp=48fa5160045d0bb2c14d034422b2ee5170889ec5;hpb=4bb4d30095fbc3b1689cc656e71f6a51e43fbd69;p=git.git diff --git a/t/test-lib.sh b/t/test-lib.sh index 48fa51600..cb1ca973a 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -260,7 +260,7 @@ test_decode_color () { if (n == 47) return "BWHITE"; } { - while (match($0, /\x1b\[[0-9;]*m/) != 0) { + while (match($0, /\033\[[0-9;]*m/) != 0) { printf "%s<", substr($0, 1, RSTART-1); codes = substr($0, RSTART+2, RLENGTH-3); if (length(codes) == 0)