Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
Merge pull request #129 from huangwf0119/master
Browse files Browse the repository at this point in the history
Fix one bug in HumanName.is_suffix
  • Loading branch information
derek73 authored Jan 28, 2022
2 parents e9aef6a + da1bbc8 commit 569ccf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nameparser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ def is_suffix(self, piece):
"""
# suffixes may have periods inside them like "M.D."
if isinstance(piece, list):
for piece in pieces:
if self.is_suffix(piece):
for item in piece:
if self.is_suffix(item):
return True
else:
return ((lc(piece).replace('.', '') in self.C.suffix_acronyms)
Expand Down

0 comments on commit 569ccf3

Please sign in to comment.