From 0e00adc5ee9b7496908218f25748d1c7485eac25 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 21 Sep 2017 09:28:18 +0000 Subject: [PATCH] Another tweak to the draft author extraction code, to handle some name transliterations using multiple leading grave accents. - Legacy-Id: 14149 --- ietf/utils/draft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/utils/draft.py b/ietf/utils/draft.py index cc9f2b2c0..1bc4996d6 100755 --- a/ietf/utils/draft.py +++ b/ietf/utils/draft.py @@ -575,7 +575,7 @@ class Draft(): # permit insertion of middle names between first and last, and # add possible honorific and suffix information - authpat = r"(?:^| and )(?:%(hon)s ?)?([`']?%(first)s\S*( +[^ ]+)* +%(last)s)( *\(.*|,( [A-Z][-A-Za-z0-9]*)?| %(suffix)s| [A-Z][a-z]+)?" % {"hon":hon, "first":first, "last":last, "suffix":suffix,} + authpat = r"(?:^| and )(?:%(hon)s ?)?(['`]*%(first)s\S*( +[^ ]+)* +%(last)s)( *\(.*|,( [A-Z][-A-Za-z0-9]*)?| %(suffix)s| [A-Z][a-z]+)?" % {"hon":hon, "first":first, "last":last, "suffix":suffix,} return authpat authors = []