From ff0dce19a0e04338f3df7cd8c75f041bac3ca4f9 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 Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit 7c74eb91248cbdc383e5b3d0d1c48c4ae5d570a3) Signed-off-by: Victor Grousset/tuxayo --- 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 a7cb7346d5..01b62be4e8 100644 --- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm +++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm @@ -986,7 +986,7 @@ sub clean_search_term { $term =~ s/((?