Skip to content

Commit

Permalink
Performance
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo Alliaume <hugo@alliau.me>
  • Loading branch information
smnandre and Kocal authored Nov 3, 2024
1 parent 3452436 commit 9f7c9c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TwigComponent/src/ComponentAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
) {
Expand Down

0 comments on commit 9f7c9c8

Please sign in to comment.