diff options
author | Gabor X Toth <*@tg-x.net> | 2014-03-06 23:46:42 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2014-03-06 23:46:42 +0000 |
commit | a21beab58c1d2abc747359a98326f19aaad4e8cd (patch) | |
tree | 775f716fd782e44c4abddc92b3643675ca737667 /contrib | |
parent | 25ccd453b45a0f73008e414d6d4f8c34f6f8d779 (diff) |
logread: more generic message type regexp
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/logread.pl | 4 |
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; } |