Skip to content

Commit 39259c9

Browse files
committed
Support unicode tokens in standardizing line endings
1 parent 7901d5f commit 39259c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Languages/Base/Injections/GutterInjection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function addClass(int $line, string $class): self
3434

3535
public function parse(string $content, Highlighter $highlighter): ParsedInjection
3636
{
37-
$lines = preg_split('/\R/', trim($content));
37+
$lines = preg_split('/\R/u', trim($content));
3838

3939
$gutterNumbers = [];
4040
$longestGutterNumber = '';

src/Languages/Ellison/Injections/ParserInjection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function parseContent(string $content, Highlighter $highlighter): string
2323
{
2424
$ellison = new Ellison();
2525
$parsed = [];
26-
$paragraphs = preg_split('/\R/', trim($content));
26+
$paragraphs = preg_split('/\R/u', trim($content));
2727

2828
foreach ($paragraphs as $paragraph) {
2929
$parsedParagraph = '';

0 commit comments

Comments
 (0)