latex update

This commit is contained in:
wangjinlei
2026-02-26 16:53:02 +08:00
parent c24dec2e55
commit dea6f8ea1e

View File

@@ -2387,11 +2387,12 @@ class Production extends Base
//这里处理引用 //这里处理引用
if ($check_refer&&preg_match('/(?:<blue>)?\[(\d+(?:[-,]\d+)*)\](?:<\/blue>)?/', $tagWrappedContent, $matches)) { if ($check_refer&&preg_match('/(?:<blue>)?\[\s*(\d+(?:\s*[-,]\s*\d+)*)\s*\](?:<\/blue>)?/', $tagWrappedContent, $matches)) {
// 去除匹配中的 <blue> 和 </blue> // 去除匹配中的 <blue> 和 </blue>
$cleanedMatch = str_replace(['<blue>', '</blue>'], '', $matches[0]); $cleanedMatch = str_replace(['<blue>', '</blue>'], '', $matches[0]);
// 提取引用编号部分(去掉方括号) // 提取引用编号部分(去掉方括号)
$referencePart = trim($cleanedMatch, '[]'); $referencePart = trim($cleanedMatch, '[]');
$referencePart = preg_replace('/\s+/', '', $referencePart); // 移除所有空格
// 分割逗号分隔的不同引用项 // 分割逗号分隔的不同引用项
$parts = explode(',', $referencePart); $parts = explode(',', $referencePart);