Skip to content

Commit

Permalink
Better code to catch false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Apr 13, 2024
1 parent 294d853 commit 3e4ec81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -2476,7 +2476,7 @@ sub print_person
complain({ person => $person, warning => "Removing leading 0 from baptism date '$dateofbaptism'" });
$dateofbaptism =~ s/^0//;
}
if($dateofbaptism && $dateofbirth && ($dateofbirth !~ /^abt /) && ($dateofbaptism !~ /^bet \d{3,4} and \d{3,4}$/) && (datecmp($dateofbaptism, $dateofbirth) <= 0)) {
if($dateofbaptism && $dateofbirth && ($dateofbirth !~ /^abt\s/i) && ($dateofbaptism !~ /^bet \d{3,4} and \d{3,4}$/) && (datecmp($dateofbaptism, $dateofbirth) <= 0)) {
complain({ person => $person, warning => "Date of baptism ($dateofbaptism) before date of birth ($dateofbirth)" });
}
my $placeofbaptism = get_value({ person => $person, value => 'baptism place' });
Expand Down

0 comments on commit 3e4ec81

Please sign in to comment.