Skip to content

Commit

Permalink
#450: updated HTML tag matching Regexp in CustomBladeCompiler.php (#451)
Browse files Browse the repository at this point in the history
Co-authored-by: Pascal Baljet <[email protected]>
  • Loading branch information
majortom731 and pascalbaljet authored Mar 20, 2024
1 parent a4b2280 commit d23d97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CustomBladeCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function compileComponentTags($view)
*/
public static function regexForTag(string $tag): string
{
return '/(<\s*' . $tag . '[^>]*>)(.|\n)*?(<\/' . $tag . '>)/';
return '/(<\s*' . $tag . '(?:"[^"]*"|\'[^\']*\'|[^\'">])*>)(.|\n)*?(<\/' . $tag . '>)/';
}

/**
Expand Down

0 comments on commit d23d97f

Please sign in to comment.