DatesRole: switch in || for //.
Requested change to make the syntax more familiar. We shouldn't have any valid false-y values, so this should be equivalent.master
parent
73ccf7282e
commit
f2ebf9006e
|
@ -125,7 +125,7 @@ sub build_datestring_regex {
|
|||
sub parse_datestring_to_date {
|
||||
my ($d) = @_;
|
||||
|
||||
return parse_formatted_datestring_to_date($d) // parse_descriptive_datestring_to_date($d);
|
||||
return parse_formatted_datestring_to_date($d) || parse_descriptive_datestring_to_date($d);
|
||||
}
|
||||
|
||||
# Accepts a string which looks like date per the supplied datestring_regex (e.g. '31/10/1980')
|
||||
|
|
Loading…
Reference in New Issue