From 3b960a2e3c4cdb9a495c8563ade3fb35c824efa9 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Thu, 3 Nov 2011 18:37:36 +0100 Subject: [PATCH] Revert to safer POSIX AWK regexp. AWK from Ubuntu 8.04 (mawk) doesn't support [[:space:]]; so for backwards compatibility use a plain ASCII space instead. --- todo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.sh b/todo.sh index 12adb54..070f865 100755 --- a/todo.sh +++ b/todo.sh @@ -826,7 +826,7 @@ _format() { if (match($0, /^[0-9]+ x /)) { print highlight("COLOR_DONE") $0 highlight("DEFAULT") - } else if (match($0, /^[0-9]+ \([A-Z]\)[[:space:]]/)) { + } else if (match($0, /^[0-9]+ \([A-Z]\) /)) { clr = highlight("PRI_" substr($0, RSTART + RLENGTH - 3, 1)) print \ (clr ? clr : highlight("PRI_X")) \