mirror of
https://github.com/standardebooks/web.git
synced 2025-07-10 00:30:28 -04:00
Delete non-alphanumerics from query, don't replace with space
This commit is contained in:
parent
5e10d3be6f
commit
fce4fbc601
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class Formatter{
|
|||
* Remove diacritics and non-alphanumeric characters.
|
||||
*/
|
||||
public static function RemoveDiacriticsAndNonalphanumerics(string $text): string{
|
||||
return trim(preg_replace('|[^a-zA-Z0-9 ]|ius', ' ', Formatter::RemoveDiacritics($text)));
|
||||
return trim(preg_replace('|[^a-zA-Z0-9 ]|ius', '', Formatter::RemoveDiacritics($text)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue