Skip to content

Commit 4946a3f

Browse files
committed
Updated draft submission author extraction module to handle dash-separated double given names.
- Legacy-Id: 5088
1 parent 158f501 commit 4946a3f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

ietf/utils/draft.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import sys
4141
import time
4242

43-
version = "0.28"
43+
version = "0.29"
4444
program = os.path.basename(sys.argv[0])
4545
progdir = os.path.dirname(sys.argv[0])
4646

@@ -480,6 +480,11 @@ def dotexp(s):
480480
# if there's a middle part, let it be optional
481481
first, middle = first.split(" ", 1)
482482
first = "%s( +%s)?" % (first, middle)
483+
484+
# Double names (e.g., Jean-Michel) are abbreviated as two letter
485+
# connected by a dash -- let this expand appropriately
486+
first = re.sub("^([A-Z])-([A-Z])\.\*", r"\1.*-\2.*", first)
487+
483488
# Some chinese names are shown with double-letter(latin) abbreviated given names, rather than
484489
# a single-letter(latin) abbreviation:
485490
first = re.sub("^([A-Z])[A-Z]+\.\*", r"\1[-\w]+", first)

0 commit comments

Comments
 (0)