Skip to content

Commit d06402f

Browse files
authored
Merge pull request #326 from opcodesio/bugfix/splitting-multibyte-string
use mb_str_split for multi-byte character support
2 parents 9dceeea + 041ee0c commit d06402f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Logs/LaravelLog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function parseText(array &$matches = []): void
3434

3535
// sometimes, even the first line will have a HUGE exception with tons of debug data all in one line,
3636
// so in order to properly match, we must have a smaller first line...
37-
$firstLineSplit = str_split($firstLine, 1000);
37+
$firstLineSplit = mb_str_split($firstLine, 1000);
3838

3939
preg_match(static::regexPattern(), array_shift($firstLineSplit), $matches);
4040

0 commit comments

Comments
 (0)