Skip to content

Commit

Permalink
multiple # presence handling in single block
Browse files Browse the repository at this point in the history
  • Loading branch information
avinash403 committed Sep 17, 2023
1 parent 6796f51 commit 3312342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TwillUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function clearTempStore(): void
public function parseInternalLinks(string $content): string
{
return preg_replace_callback(
'/(#twillInternalLink::(.*)#(\d+))/',
'/(#twillInternalLink::(.*?)#(\d+))/',
function (array $data) {
if (isset($data[2], $data[3])) {
$modelClass = $data[2];
Expand Down

0 comments on commit 3312342

Please sign in to comment.