mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
Add rsquo to artwork filter query parsing
This commit is contained in:
parent
8a8692619c
commit
478eb200c8
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ class Library{
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove diacritics and non-alphanumeric characters, but preserve apostrophes
|
// 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.
|
// 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);
|
$tokenArray = preg_split('/\b\s+/', $query, -1, PREG_SPLIT_NO_EMPTY);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue