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)
committerMason James <mtj@kohaaloha.com>
Fri, 2 Oct 2015 08:44:46 +0000 (21:44 +1300)
commit3f7deae568227027fb3664b0109af2ce7b8d6c16
treec19d7a5bfb7f2904f5dcae454578eae0d3f09bb9
parent37f0bddb17ed53e7049c295c6e2b24c3392c888c
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.
reports/guided_reports.pl