Skip to content

Commit

Permalink
make sure bundle core is injected first
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Feb 21, 2024
1 parent 723b2b6 commit 3e67344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InjectCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function injectAssets(string $html, string $core): string

if ($html->test('/<\s*\/\s*head\s*>/i')) {
return $html
->replaceMatches('/(<\s*\/\s*head\s*>)/i', $core . '$1')
->replaceMatches('/(<\s*\\s*head\s*>)/i', '$1' . $core)
->toString();
}

Expand Down

0 comments on commit 3e67344

Please sign in to comment.