From 40d97237ee25b3d737ab90990dcd6a1d920d5768 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 2 Nov 2020 13:39:09 +0000 Subject: [PATCH] Bug 24567: (follow-up) Use dollar sign to refer to captures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Joonas Kylmälä --- 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 a0d8d65df4..39cf1d22a7 100644 --- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm +++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm @@ -940,7 +940,7 @@ sub _clean_search_term { } # Remove unquoted colons that have whitespace on either side of them - $term =~ s/((:+)(\s+)|(\s+)(:+))$lookahead/\3\4/g; + $term =~ s/((:+)(\s+)|(\s+)(:+))$lookahead/$3$4/g; $term = $self->_query_regex_escape_process($term); -- 2.11.0