Don't require either . or , to separate year from degree institution
authorW. Trevor King <wking@drexel.edu>
Sat, 26 Jun 2010 22:12:23 +0000 (18:12 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 26 Jun 2010 22:12:23 +0000 (18:12 -0400)
sitecore/prof/export_mysql.py

index 906e6cdd58cd86717268625440468622f9547223..1d1b7b0f563a397197fba6fe23ab12ae621003de 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*) +(\S*), (\D*)([,.]? *(\d*))?$')
 """Examples:
 
 M.S.  Physics, University of Calcutta, Calcutta, India