mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-04-21 16:01:56 +02:00
Merge pull request #1634 from mihit/patch-1
Fixed realText on ja_JP locale broken, /u missing
This commit is contained in:
commit
dcc68caa0b
@ -598,7 +598,7 @@ EOT;
|
||||
protected static function explode($text)
|
||||
{
|
||||
$chars = array();
|
||||
foreach (preg_split('//u', preg_replace('/\s+/', '', $text)) as $char) {
|
||||
foreach (preg_split('//u', preg_replace('/\s+/u', '', $text)) as $char) {
|
||||
if ($char !== '') {
|
||||
$chars[] = $char;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user