Skip to content

Commit

Permalink
Use PHP_EOL instead of \n
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Feb 23, 2024
1 parent 9bf8b8b commit 021f805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/ReplaceOrAppendTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __invoke(string $contents)

return preg_replace(
static::CLOSING_HEAD_TAG_PATTERN,
"\n\\1 <x-importmap::tags />\\1\\2",
PHP_EOL."\\1 <x-importmap::tags />\\1\\2",
$contents,
);
}
Expand Down

0 comments on commit 021f805

Please sign in to comment.