]> 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)
committerLiz Rea <wizzyrea@gmail.com>
Thu, 16 Jul 2015 10:20:15 +0000 (10:20 +0000)
commit055442cd0d404c49522794b79d269730e0d1ef6c
treefd46896f5fd7cb045f157532fd57f85826c56e32
parenta3099a7e5aeb635a879aec4a10fe7ebe3834a1dd
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>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
reports/guided_reports.pl