Skip to content

Commit ab8e5b5

Browse files
committed
don't test is_title() if there's a first name
1 parent 5b1b88d commit ab8e5b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nameparser/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,9 @@ def parse_full_name(self):
591591
nxt = None
592592

593593
# title must have a next piece, unless it's just a title
594-
if self.is_title(piece) \
594+
if not self.first \
595595
and (nxt or p_len == 1) \
596-
and not self.first:
596+
and self.is_title(piece):
597597
self.title_list.append(piece)
598598
continue
599599
if not self.first:

0 commit comments

Comments
 (0)