don't be greedy

This commit is contained in:
Mike Macgirvin 2023-04-10 11:14:12 +10:00
parent 2532787c45
commit 009e0348f0

View file

@ -1206,7 +1206,7 @@ function multicode_purify($s)
function bb_mdlink_protect($matches) function bb_mdlink_protect($matches)
{ {
$token = strtok($matches[1],']= '); $token = strtok($matches[1],'= ');
if (!$token) { if (!$token) {
$token = $matches[1]; $token = $matches[1];
} }