changeset 17:0fa60b773da6

Fix _WHO_AND_WHEN_RE to handle Full Names
author Paul Aurich <paul@darkrain42.org>
date Fri, 24 Apr 2009 19:46:17 -0700
parents 234128693c29
children ae8dd2a2f102
files fastimport/parser.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/fastimport/parser.py	Fri Apr 24 19:46:17 2009 -0700
+++ b/fastimport/parser.py	Fri Apr 24 19:46:17 2009 -0700
@@ -249,9 +249,8 @@
 
 
 # Regular expression used for parsing. (Note: The spec states that the name
-# part should be non-empty but git-fast-export doesn't always do that so
-# the first bit is \w*, not \w+.)
-_WHO_AND_WHEN_RE = re.compile(r'(\w*) <(.+)> (.+)')
+# part should be non-empty, but git-fast-export doesn't always do that.)
+_WHO_AND_WHEN_RE = re.compile(r'([^\<\n]+) <([^\>\n]+)> (.+)')
 
 
 class ImportParser(LineBasedParser):