diff --git a/laravel/str.php b/laravel/str.php index 21e15475..964b5d5b 100644 --- a/laravel/str.php +++ b/laravel/str.php @@ -150,7 +150,7 @@ public static function words($value, $words = 100, $end = '...') { if (trim($value) == '') return ''; - preg_match('/^\s*+(?:\S++\s*+){1,'.$words.'}/', $value, $matches); + preg_match('/^\s*+(?:\S++\s*+){1,'.$words.'}/u', $value, $matches); if (static::length($value) == static::length($matches[0])) {