Skip to content

Commit a9484a3

Browse files
authored
Merge pull request #46 from PhpSlides/dev
Dev
2 parents 9955a24 + 8cb0227 commit a9484a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Formatter/Views/FormatPslTags.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function psl_tags()
3434
{
3535
// Regular expression to match any PHP opening and closing tags
3636
$formattedContents = preg_replace_callback(
37-
'/<' . '\?' . '\s+([^?]*)\?' . '>/s',
37+
'/<' . '\?' . '\s+([\s\S]*?)\s*\?' . '>/s',
3838
function ($matches) {
3939
// Trim the content inside the PHP tags, removing trailing semicolons
4040
$val = trim($matches[1]);

0 commit comments

Comments
 (0)