Allow multi-word graduation fields
authorW. Trevor King <wking@drexel.edu>
Sat, 26 Jun 2010 22:13:14 +0000 (18:13 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 26 Jun 2010 22:13:14 +0000 (18:13 -0400)
sitecore/prof/export_mysql.py

index 1d1b7b0f563a397197fba6fe23ab12ae621003de..973025adcde11988dd7c9544320ea06f8e45b4f2 100644 (file)
@@ -33,7 +33,7 @@ from .. import get_logger
 from . import Name, Graduation, Contact, Bio, Professor
 
 
-GRADUATION_REGEXP = re.compile('^(\S*) +(\S*), (\D*)([,.]? *(\d*))?$')
+GRADUATION_REGEXP = re.compile('^(\S*) +([^,]*), (\D*)([,.]? *(\d*))?$')
 """Examples:
 
 M.S.  Physics, University of Calcutta, Calcutta, India