no message

This commit is contained in:
kuaifan
2023-02-17 18:12:06 +08:00
parent fedf8a3eda
commit 6c173674f0
4 changed files with 6 additions and 6 deletions

View File

@@ -1446,9 +1446,9 @@ class Base
$regex = str_replace("~%~", "(.*?)", $regex);
$regex = "/^" . $regex . "$/";
if (preg_match($regex, $val)) {
return preg_replace_callback($regex, function($m) use ($item) {
$r = $item ?: $key;
return preg_replace_callback($regex, function($m) use ($r) {
$i = 0;
$r = $item;
foreach ($m as $v) {
if ($i > 0) {
$r = preg_replace("/\(\*\)/", $v, $r, 1);