Skip to content

Commit f059fad

Browse files
authored
[5.x] Fixes shouldUpdateUris regex adding additional brackets to Antlers (#13995)
1 parent a912d39 commit f059fad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Entries/Entry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ private function shouldUpdateUris(): bool
454454
return false;
455455
}
456456

457-
$antlersRoute = preg_replace_callback('/{\s*([a-zA-Z0-9_\-]+)\s*}/', function ($match) {
457+
$antlersRoute = preg_replace_callback('/(?<!{){\s*([a-zA-Z0-9_\-]+)\s*}(?!})/', function ($match) {
458458
return "{{ {$match[1]} }}";
459459
}, $this->route());
460460

0 commit comments

Comments
 (0)