From 478eb200c8ffaf65e6ceb3b2b02d8436869b94ac Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Mon, 22 Jan 2024 13:33:27 -0600 Subject: [PATCH] Add rsquo to artwork filter query parsing --- lib/Library.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Library.php b/lib/Library.php index bc75c5df..2f9c0217 100644 --- a/lib/Library.php +++ b/lib/Library.php @@ -214,7 +214,7 @@ class Library{ } // Remove diacritics and non-alphanumeric characters, but preserve apostrophes - $query = trim(preg_replace('|[^a-zA-Z0-9\' ]|ius', ' ', Formatter::RemoveDiacritics($query ?? ''))); + $query = trim(preg_replace('|[^a-zA-Z0-9\'’ ]|ius', ' ', Formatter::RemoveDiacritics($query ?? ''))); // Split the query on word boundaries followed by spaces. This keeps words with apostrophes intact. $tokenArray = preg_split('/\b\s+/', $query, -1, PREG_SPLIT_NO_EMPTY);