Skip to content

Commit b45db37

Browse files
committed
add new suffix placement support to docs
1 parent 7626c21 commit b45db37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Supports 3 different comma placement variations in the input string.
3030

3131
* Title Firstname "Nickname" Middle Middle Lastname Suffix
3232
* Lastname, Title Firstname (Nickname) Middle Middle[,] Suffix [, Suffix]
33-
* Title Firstname M Lastname, Suffix [, Suffix]
33+
* Title Firstname M Lastname [Suffix], Suffix [, Suffix]
3434

3535
When there is ambiguity that cannot be resolved by a rule-based approach,
3636
HumanName prefers to handle the most common cases correctly. For example,

nameparser/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def parse_full_name(self):
402402
else:
403403
if self.is_suffix(parts[1]):
404404

405-
# suffix comma: title first middle last, suffix [, suffix]
405+
# suffix comma: title first middle last [suffix], suffix [, suffix]
406406

407407
self.suffix_list += parts[1:]
408408

0 commit comments

Comments
 (0)