Skip to content

Commit

Permalink
fix: add exception to last<->first name swap (#8043)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks authored Oct 11, 2024
1 parent 148fa2f commit 83f5fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ietf/person/name.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def name_parts(name):
last = parts[0]
if len(parts) >= 2:
# Handle reverse-order names with uppercase surname correctly
if len(first)>1 and re.search("^[A-Z-]+$", first):
if len(first)>1 and re.search("^[A-Z-]+$", first) and first != "JP":
first, last = last, first.capitalize()
# Handle exception for RFC Editor
if (prefix, first, middle, last, suffix) == ('', 'Editor', '', 'Rfc', ''):
Expand Down

0 comments on commit 83f5fc8

Please sign in to comment.