Skip to content

Commit e07b841

Browse files
committed
Ignore place of birth when just a comma
1 parent 11e381e commit e07b841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gedcom

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,7 @@ sub print_person
22372237
complain({ person => $person, warning => "Comma missing before USA in birth location '$placeofbirth'" });
22382238
$placeofbirth = "$1, USA";
22392239
$birth_country = 'United States';
2240-
} elsif($placeofbirth =~ /.+,\s?(.+)$/) {
2240+
} elsif(($placeofbirth !~ /^\s+,\s+$/) && ($placeofbirth =~ /.+,\s?(.+)$/)) {
22412241
my $c = $1;
22422242

22432243
if($c =~ /\s+$/) {

0 commit comments

Comments
 (0)