aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-03-06 23:46:42 +0000
committerGabor X Toth <*@tg-x.net>2014-03-06 23:46:42 +0000
commita21beab58c1d2abc747359a98326f19aaad4e8cd (patch)
tree775f716fd782e44c4abddc92b3643675ca737667 /contrib
parent25ccd453b45a0f73008e414d6d4f8c34f6f8d779 (diff)
logread: more generic message type regexp
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/logread.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/logread.pl b/contrib/logread.pl
index 11baf2d86a..26f809e541 100755
--- a/contrib/logread.pl
+++ b/contrib/logread.pl
@@ -98,9 +98,9 @@ while (<>)
s/\b(multicast|psyc|psycstore|social)\b/BLUE $1/ex;
# Add message type names
- s/(message(?:\s+part)?(?:\s+of)?\s+type\s+)(\d+)/
+ s/(\s+type\s+)(\d+)/
$1 . BRIGHT_CYAN (exists $msgtypes{$2} ? $msgtypes{$2} : 'UNKNOWN') .
- CYAN " ($2)"/e;
+ CYAN " ($2)"/ei;
print;
}