From baedd54d6c42b0e7797d947b69e395176d8aa15e Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 20 Oct 2021 12:49:42 +0000 Subject: [PATCH] Bug 29284: Handle the case of an exclamation point in parentheses This expands the regex to handle this specific case To test: 1 - Load record created for last patch 2 - Note analytics error 3 - Apply patch 4 - Restart and reload 5 - No more errorm also no Analytics link 6 - Add a 773$t to a record with title used before: Digger does it all (not really!) 7 - reload the initial record 8 - See 'Show analytics' link 9 - Click the link 10 - You should end up on the record you added the 773 to --- Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm index 58d5155ab4..76b4dbc6b4 100644 --- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm +++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm @@ -986,7 +986,7 @@ sub clean_search_term { $term =~ s/((?