Skip to content

Commit d23d97f

Browse files
#450: updated HTML tag matching Regexp in CustomBladeCompiler.php (#451)
Co-authored-by: Pascal Baljet <pascal@protone.media>
1 parent a4b2280 commit d23d97f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CustomBladeCompiler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function compileComponentTags($view)
2929
*/
3030
public static function regexForTag(string $tag): string
3131
{
32-
return '/(<\s*' . $tag . '[^>]*>)(.|\n)*?(<\/' . $tag . '>)/';
32+
return '/(<\s*' . $tag . '(?:"[^"]*"|\'[^\']*\'|[^\'">])*>)(.|\n)*?(<\/' . $tag . '>)/';
3333
}
3434

3535
/**

0 commit comments

Comments
 (0)