diff --git a/application/common/ProofReadService.php b/application/common/ProofReadService.php index 2dcecf3..1a52e26 100644 --- a/application/common/ProofReadService.php +++ b/application/common/ProofReadService.php @@ -301,7 +301,8 @@ class ProofReadService // 3. 核心优先级:运算符规则(精准匹配,排除No.编号干扰) [ - 'pattern' => '~(\S)\s*([<>!]=|===|!==)\s*(\S)~u', + // 'pattern' => '~(\S)\s*([<>!]=|===|!==)\s*(\S)~u', + 'pattern' => '~(?)\s*(\S)\s*([<>!]=|===|!==)\s*(\S)(?!<[a-z]+>)~u', 'replacement' => '$1 $2 $3', 'verbatim_texts' => '复合运算符前后空格不规范', 'explanation' => '复合运算符[>=、<=、==、!=、===、!==]前后应各留一个空格',