@@ -36,10 +36,10 @@ class HumanName(object):
36
36
37
37
Instantiation assigns to ``full_name``, and assignment to
38
38
:py:attr:`full_name` triggers :py:func:`parse_full_name`. After parsing the
39
- name, these instance attributes are available. Alternatively, you can pass
39
+ name, these instance attributes are available. Alternatively, you can pass
40
40
any of the instance attributes to the constructor method and skip the parsing
41
- process. If any of the the instance attributes are passed to the constructor
42
- as keywords, :py:func:`parse_full_name` will not be performed.
41
+ process. If any of the the instance attributes are passed to the constructor
42
+ as keywords, :py:func:`parse_full_name` will not be performed.
43
43
44
44
**HumanName Instance Attributes**
45
45
@@ -536,9 +536,9 @@ def parse_nicknames(self):
536
536
Loops through 3 :py:data:`~nameparser.config.regexes.REGEXES`;
537
537
`quoted_word`, `double_quotes` and `parenthesis`.
538
538
"""
539
-
539
+
540
540
empty_re = re .compile ("" )
541
-
541
+
542
542
re_quoted_word = self .C .regexes .quoted_word or empty_re
543
543
re_double_quotes = self .C .regexes .double_quotes or empty_re
544
544
re_parenthesis = self .C .regexes .parenthesis or empty_re
@@ -906,7 +906,7 @@ def join_on_conjunctions(self, pieces, additional_parts_count=0):
906
906
# If it's the first piece and there are more than 1 rootnames, assume it's a first name
907
907
continue
908
908
next_prefix = next (iter (filter (self .is_prefix , pieces [i + 1 :])))
909
- j = pieces .index (next_prefix )
909
+ j = pieces .index (next_prefix , i + 1 )
910
910
if j == i + 1 :
911
911
# if there are two prefixes in sequence, join to the following piece
912
912
j += 1
0 commit comments