Skip to content

Commit

Permalink
Update t0 handle middle initial correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
krlnwll committed Mar 5, 2017
1 parent efaefa6 commit d54106d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ public function parse_name($full_name) {
break;
}

if (!$this->is_compound_first($word) && $i != 0) {
echo $word;
//If we are past the first name and it is not a compund first or initial break.
if (!$this->is_compound_first($word) && $i != 0 && !$this->is_initial($word)) {
if($fname != '') {
break;
}
Expand All @@ -282,8 +282,6 @@ public function parse_name($full_name) {
}
}



//LAST NAME
if( count($unfiltered_name_parts)) {
# check that we have more than 1 word in our string
Expand Down

0 comments on commit d54106d

Please sign in to comment.