Skip to content

Commit

Permalink
fix(preview) : revert regex catch of {{bazar}} because it can be form…
Browse files Browse the repository at this point in the history
… and not list
  • Loading branch information
mrflos committed Feb 6, 2024
1 parent f40e790 commit 8b34785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/PreviewHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected function getContentAndPublication(array $get): array
/**
* Print from page, but render its {{ bazar* }} elements
*/
elseif (preg_match('/({{(bazarliste|bazarcarto|bazar|calendrier|map|gogomap)\s*[^}]*}})/i', $this->wiki->page['body'], $matches)) {
elseif (preg_match('/({{(bazarliste|bazarcarto|calendrier|map|gogomap)\s*[^}]*}})/i', $this->wiki->page['body'], $matches)) {
$actionText = $matches[1];
$actionName = $matches[2];
$matches = [];
Expand Down

0 comments on commit 8b34785

Please sign in to comment.