Skip to content

Commit 9f7c9c8

Browse files
smnandreKocal
andauthored
Performance
Co-authored-by: Hugo Alliaume <[email protected]>
1 parent 3452436 commit 9f7c9c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TwigComponent/src/ComponentAttributes.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public function __toString(): string
4444
),
4545
function (string $carry, string $key) {
4646
if (
47-
preg_match(self::NESTED_REGEX, $key)
47+
str_contains($key, ':')
48+
&& preg_match(self::NESTED_REGEX, $key)
4849
&& !preg_match(self::ALPINE_REGEX, $key)
4950
&& !preg_match(self::VUE_REGEX, $key)
5051
) {

0 commit comments

Comments
 (0)