diff --git a/src/Formatter/TextPreview/FormatTextPreview.php b/src/Formatter/TextPreview/FormatTextPreview.php index c3a54fc2..c6c9d9e4 100644 --- a/src/Formatter/TextPreview/FormatTextPreview.php +++ b/src/Formatter/TextPreview/FormatTextPreview.php @@ -47,7 +47,7 @@ public function __invoke(Renderer $renderer, $context, string $xml) if ($response->getStatusCode() === 200) { $file_contents = $response->getBody()->getContents(); - $lines = preg_split('/\R/', $file_contents); + $lines = mb_split('\R', $file_contents); $lines = array_filter($lines, 'trim'); if (count($lines) <= 5) {