Skip to content

Commit

Permalink
FIX: Bad characters in extract due to preg_replace with php 7.0 and l…
Browse files Browse the repository at this point in the history
…ower
  • Loading branch information
Lukáš Šmahel committed Mar 6, 2019
1 parent 7d37e43 commit 09bcb7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public function sanitize($text) {
* @return string The generated extract.
*/
public function createExtract($text, $length = 200, $search = '', $ellipsis = '...') {
$text = trim(preg_replace('/\s+/', ' ', $this->sanitize($text)));
$text = trim(preg_replace('/\s+/u', ' ', $this->sanitize($text)));
if (empty($text)) {
return '';
}
Expand Down

0 comments on commit 09bcb7c

Please sign in to comment.