Skip to content

Commit 42292eb

Browse files
committed
don't test is_title() if there's a first name
1 parent dc53c0e commit 42292eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nameparser/parser.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,9 @@ def parse_full_name(self):
641641
except IndexError:
642642
nxt = None
643643

644-
if self.is_title(piece) \
644+
if not self.first \
645645
and (nxt or len(pieces) == 1) \
646-
and not self.first:
646+
and self.is_title(piece):
647647
self.title_list.append(piece)
648648
continue
649649
if not self.first:

0 commit comments

Comments
 (0)