Skip to content

Commit

Permalink
Merge pull request #46 from PhpSlides/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
dconco authored Dec 12, 2024
2 parents 9955a24 + 8cb0227 commit a9484a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Formatter/Views/FormatPslTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function psl_tags()
{
// Regular expression to match any PHP opening and closing tags
$formattedContents = preg_replace_callback(
'/<' . '\?' . '\s+([^?]*)\?' . '>/s',
'/<' . '\?' . '\s+([\s\S]*?)\s*\?' . '>/s',
function ($matches) {
// Trim the content inside the PHP tags, removing trailing semicolons
$val = trim($matches[1]);
Expand Down

0 comments on commit a9484a3

Please sign in to comment.