Browse Source

add u PCRE modifier to str::words.

Taylor Otwell 12 years ago
parent
commit
280bc99ed8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/str.php

+ 1 - 1
laravel/str.php

@@ -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]))
 		{