diff --git a/src/TwigComponent/src/ComponentAttributes.php b/src/TwigComponent/src/ComponentAttributes.php index 9f2a3a9dd2f..194acaba941 100644 --- a/src/TwigComponent/src/ComponentAttributes.php +++ b/src/TwigComponent/src/ComponentAttributes.php @@ -44,7 +44,8 @@ public function __toString(): string ), function (string $carry, string $key) { if ( - preg_match(self::NESTED_REGEX, $key) + str_contains($key, ':') + && preg_match(self::NESTED_REGEX, $key) && !preg_match(self::ALPINE_REGEX, $key) && !preg_match(self::VUE_REGEX, $key) ) {