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)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Tue, 7 Jul 2015 18:17:10 +0000 (15:17 -0300)
commitbfea40b6e8161629c11d97be5eeba56fb6d59ba3
treebd78ddfa9efdacf423cdfda73a8af772596e804d
parentc3fea53039a6c53c766b0403eedd57f644c6f772
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>
reports/guided_reports.pl