From 8a7fc4cce342c178260869e20913aced8994826a Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Fri, 22 Nov 2013 20:04:07 +0100 Subject: git-log-describe: match more color escapes Some commits failed to match in an decorated log because they used a bold-face color (like `\e[1;94m`). --- git-log-describe.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-log-describe.awk') diff --git a/git-log-describe.awk b/git-log-describe.awk index 579b06d..c4f7fee 100755 --- a/git-log-describe.awk +++ b/git-log-describe.awk @@ -16,7 +16,7 @@ function has_color(str) { { is_color = has_color($0); # strip color escapes for easier text matching - gsub(/\033\[[0-9]*m/, ""); + gsub(/\033\[[0-9;]*m/, ""); text_len = length($0); # remove --graph markers -- cgit v1.2.1