define constant fix

This commit is contained in:
xiaomlove
2021-05-16 02:57:00 +08:00
parent 17e92f885b
commit 7dee44140b
5 changed files with 48 additions and 23 deletions

View File

@@ -4856,7 +4856,7 @@ function format_description(string $description)
$quotePattern = '\[quote.*\].*\[\/quote\]';
$pattern = "/($attachPattern)|($imgPattern)|($urlPattern)|($quotePattern)/isU";
// $pattern = "/($attachPattern)|($imgPattern)|($urlPattern)/isU";
$delimiter = '{{||}}';
$delimiter = '{{__CYLX__}}';
$description = preg_replace_callback($pattern, function ($matches) use ($delimiter) {
return $delimiter . $matches[0] . $delimiter;
}, $description);