changeset 119:0c6ef399308f

irc parser non-greedy matching imported from: moin--main--1.5--patch-121
author Thomas Waldmann <tw@waldmann-edv.de>
date Tue, 18 Oct 2005 17:48:10 +0000
parents 139cb901b81c
children a59ea3ccc040
files MoinMoin/parser/irc.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/irc.py	Tue Oct 18 00:04:22 2005 +0000
+++ b/MoinMoin/parser/irc.py	Tue Oct 18 17:48:10 2005 +0000
@@ -32,7 +32,7 @@
             ((\[|\()?                      # Opening bracket for the timestamp (if it exists)
                 (?P<time>([\d]?\d[:.]?)+)  # Timestamp as one or more :/.-separated groups of 1 or 2 digits (if it exists)
             (\]|\))?\s+)?                  # Closing bracket for the timestamp (if it exists) plus whitespace
-             <\s*?(?P<nick>.*)\s*?>        # Nick
+            <\s*?(?P<nick>.*?)\s*?>        # Nick
             \s+                            # Space between the nick and message
             (?P<msg>.*)                    # Message
         """, re.VERBOSE + re.UNICODE)