From a11ccd2d28f1c6040061d9ea6f3842a3d879c3f5 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Thu, 16 Dec 2021 14:27:02 -1000 Subject: [PATCH] Revert "Bug 29403: Match the whole string" This reverts commit 62652115dc2b9263c9ac1d9067fdab240f96f9a1. --- Koha/DateUtils.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Koha/DateUtils.pm b/Koha/DateUtils.pm index c4120b8c8f..ad242b59eb 100644 --- a/Koha/DateUtils.pm +++ b/Koha/DateUtils.pm @@ -162,10 +162,6 @@ sub dt_from_string { $regex .= $time_re unless ( $date_format eq 'rfc3339' ); $fallback_re .= $time_re; - # Ensure we only accept date strings and not other characters. - $regex = '^' . $regex . '$'; - $fallback_re = '^' . $fallback_re . '$'; - my %dt_params; my $ampm; if ( $date_string =~ $regex ) { -- 2.20.1