From 1c72d442eb8a1b386d0a06469e5e703b28118eb7 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 --- 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