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
Matt Miller 2014-09-01 09:00:45 -04:00
parent 73ccf7282e
commit f2ebf9006e
1 changed files with 1 additions and 1 deletions

View File

@ -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')