1
0
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:
Francois Zaninotto 2019-10-17 14:53:48 +02:00 committed by GitHub
commit dcc68caa0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}