summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-11-22 20:04:07 +0100
committerPeter Wu <lekensteyn@gmail.com>2013-11-22 20:04:07 +0100
commit8a7fc4cce342c178260869e20913aced8994826a (patch)
tree6f610aca413643f61b421ad91e163d3c51bfa390
parent0aead04cb732d55c584c1235dd59d15a02d54461 (diff)
downloadscripts-8a7fc4cce342c178260869e20913aced8994826a.tar.gz
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`).
-rwxr-xr-xgit-log-describe.awk2
1 files changed, 1 insertions, 1 deletions
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