We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 52436ec + bff3ef7 commit daeb93aCopy full SHA for daeb93a
1 file changed
Classes/EelHelper/SuggestionIndexHelper.php
@@ -44,7 +44,8 @@ public function buildConfig($input, array $payload = [], $weight = 1)
44
*/
45
protected function prepareInput($input)
46
{
47
- return array_filter(explode(' ', preg_replace("/[^[:alnum:][:space:]]/u", ' ', strip_tags($input))));
+ $input = preg_replace( "/\r|\n/", '', $input);
48
+ return array_values(array_filter(explode(' ', preg_replace("/[^[:alnum:][:space:]]/u", ' ', strip_tags($input)))));
49
}
50
51
/**
0 commit comments