Bug 29403: Match the whole string
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 3 Nov 2021 12:15:18 +0000 (12:15 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 28 Jan 2022 21:09:06 +0000 (11:09 -1000)
commit9b3a443477953fc253dc78feac5d03ce508627c7
treeb1cc386877deb9128a99babe0ded47cde5a7542e
parentf7683117f6e081ce87c68434c7d17271c2b858a3
Bug 29403: Match the whole string

This patch wraps the constructed regex such that we expect the entire
regex to match and don't allow leading or trailing garbage.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/DateUtils.pm