]> git.koha-community.org Git - koha.git/commit
Bug 14382: [QA Follow-up] Bad regex alarm
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 3 Jul 2015 09:02:22 +0000 (11:02 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 14 Jul 2015 07:31:26 +0000 (19:31 +1200)
commitce9b5d8904c0d46350418ed2252fd06910c01b8c
treef3f3a6f67708d1d3092a172aef4c509d7b696860
parent01fe4aea32829dccb6bb71b4d69e1a603a9fdbb1
Bug 14382: [QA Follow-up] Bad regex alarm

The regex /|date>>/ will match much more than you like :)
The unescaped pipe is bad, but you also need to remove the >> because
the split a few lines above it removes them already.

This allows you to recover from an error like this one, running another
report with a string parameter:
The given date (india%) does not match the date format (us) at
Koha/DateUtils.pm line 144.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Amended for possible spaces around the word date.
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit bfea40b6e8161629c11d97be5eeba56fb6d59ba3)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
reports/guided_reports.pl