We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f495b commit d6efe1fCopy full SHA for d6efe1f
1 file changed
ietf/person/name.py
@@ -59,7 +59,7 @@ def name_parts(name):
59
last = parts[0]
60
if len(parts) >= 2:
61
# Handle reverse-order names with uppercase surname correctly
62
- if re.search("^[A-Z-]+$", first):
+ if len(first)>1 and re.search("^[A-Z-]+$", first):
63
first, last = last, first.capitalize()
64
# Handle exception for RFC Editor
65
if (prefix, first, middle, last, suffix) == ('', 'Editor', '', 'Rfc', ''):
0 commit comments