Commit 280bc99e authored by Taylor Otwell's avatar Taylor Otwell

add u PCRE modifier to str::words.

parent 4f036cf7
......@@ -150,7 +150,7 @@ class Str {
{
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]))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment