Skip to content

Commit

Permalink
handle commas instead of spaces in dates
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jun 20, 2024
1 parent eafcad6 commit 91288e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -13415,7 +13415,7 @@ sub parse_date
# FIXME: assumes the months are in English
return $1 . ucfirst(lc(substr($2, 0, 3))) . " $3";
}
if($date =~ /^([A-Z]{3,})\s+(\d+),?\s+([\d\/]+)$/i) { # U.S. format - Jul 4 instead of 4 Jul
if($date =~ /^([A-Z]{3,})\s+(\d+),?\s*([\d\/]+)$/i) { # U.S. format - Jul 4 instead of 4 Jul
# FIXME: assumes the months are in English
my $rc = "$2 " . ucfirst(lc(substr($1, 0, 3))) . " $3";
complain({ person => $person, warning => "$date changed to $rc" });
Expand Down

0 comments on commit 91288e8

Please sign in to comment.