From dea6f8ea1e7e9285160d8647a8fee4eb3b9962fb Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Thu, 26 Feb 2026 16:53:02 +0800 Subject: [PATCH] latex update --- application/api/controller/Production.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/api/controller/Production.php b/application/api/controller/Production.php index a94eba8..a59d948 100644 --- a/application/api/controller/Production.php +++ b/application/api/controller/Production.php @@ -2387,11 +2387,12 @@ class Production extends Base //这里处理引用 - if ($check_refer&&preg_match('/(?:)?\[(\d+(?:[-,]\d+)*)\](?:<\/blue>)?/', $tagWrappedContent, $matches)) { + if ($check_refer&&preg_match('/(?:)?\[\s*(\d+(?:\s*[-,]\s*\d+)*)\s*\](?:<\/blue>)?/', $tagWrappedContent, $matches)) { // 去除匹配中的 $cleanedMatch = str_replace(['', ''], '', $matches[0]); // 提取引用编号部分(去掉方括号) $referencePart = trim($cleanedMatch, '[]'); + $referencePart = preg_replace('/\s+/', '', $referencePart); // 移除所有空格 // 分割逗号分隔的不同引用项 $parts = explode(',', $referencePart);