Description

The formatter for IRC logs (./moin-1.3.4/build/lib/MoinMoin/parser/irc.py) parses IRC nick names greedy. It must be non-greedy.

Steps to reproduce

  1. Format an IRC log which has a > in a message.

Example

13:66 <JonDoe> Hello, the parser eats my > and so separation between nick and message get wrong.

Fix

In file ./moin-1.3.4/build/lib/MoinMoin/parser/irc.py at line 35 change this:

             <\s*?(?P<nick>.*)\s*>       # Nick

to this:

             <\s*?(?P<nick>.*?)\s*?>       # Nick

Discussion

The bug appears in 1.3.5rc also. :-(

Fixed in moin 1.5 archive.


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/IRC-Logparser Non-Greedy (last edited 2007-10-29 19:21:14 by localhost)