Skip to content

Commit 862886d

Browse files
committed
Change attributes with if condition
1 parent d271c04 commit 862886d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Compiler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ private function handleAttributeBinding(DOMElement $node): void
554554

555555
if ($addIfAroundAttribute && $value) {
556556
$value = $name . '|' . base64_encode($value);
557-
$name = '__SHOW_ATTRIBUTE_IF_CONDITION_IS_TRUE__';
557+
$name = '__ATTRIBUTE_WITH_IF_CONDITION__';
558558
}
559559

560560
$node->setAttribute($name, $value);
@@ -1288,7 +1288,7 @@ private function replaceScopedPlaceholders(string $html): string
12881288

12891289
private function replaceAttributeWithIfConditionPlaceholders(string $html): string
12901290
{
1291-
$pattern = '/__SHOW_ATTRIBUTE_IF_CONDITION_IS_TRUE__="([-a-zA-Z0-9]+)\|([a-zA-Z0-9+=]+)"/';
1291+
$pattern = '/__ATTRIBUTE_WITH_IF_CONDITION__="([-a-zA-Z0-9]+)\|([a-zA-Z0-9+=]+)"/';
12921292
if (preg_match_all($pattern, $html, $matches, PREG_SET_ORDER)) {
12931293
foreach ($matches as $match) {
12941294
$name = $match[1];

0 commit comments

Comments
 (0)