Skip to content

Commit

Permalink
Catch errant dates
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 23, 2023
1 parent bb2371f commit c29b3cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ Of course you could also run gedcom as root,
but I strongly advise you don't do that.

[Library](https://github.com/nigelhorne/lib) - library of code common with
[ged2site](https://github.com/nigelhorne/ged2site).

## Acknowledgements

Expand Down
2 changes: 1 addition & 1 deletion gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -10818,7 +10818,7 @@ sub datecmp($$)
}

if($left !~ /^\d{3,4}$/) {
if($left !~ /[a-z]/i) {
if(($left !~ /[a-z]/i) || ($left =~ /[a-z]$/)) {
my $i = 0;
while((my @call_details = caller($i++))) {
print STDERR "\t", colored($call_details[2] . ' of ' . $call_details[1], 'red'), "\n";
Expand Down

0 comments on commit c29b3cb

Please sign in to comment.