We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fb5a55 commit 955f19aCopy full SHA for 955f19a
src/Model/Edit.php
@@ -381,7 +381,7 @@ public static function wikifyString(
381
382
$linkMatch = null;
383
384
- while (preg_match_all("/\[\[:?(.*?)]]/", $summary, $linkMatch)) {
+ while (preg_match_all("/\[\[:?([^\[\]]*?)]]/", $summary, $linkMatch)) {
385
$wikiLinkParts = explode('|', $linkMatch[1][0]);
386
$wikiLinkPath = htmlspecialchars($wikiLinkParts[0]);
387
$wikiLinkText = htmlspecialchars(
0 commit comments