X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=contrib%2Flogread.pl;h=26f809e5415933cbca2fc3e776d018244639358c;hb=05c4d0f2433df51a628b8f772af961ce1329d65e;hp=11baf2d86ad6f0cc9bd9ba8fefa83e297c1ee043;hpb=1a0ffe2288b97b47a5b2bfbda2f9438680429422;p=oweals%2Fgnunet.git diff --git a/contrib/logread.pl b/contrib/logread.pl index 11baf2d86..26f809e54 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; }