过滤标签

This commit is contained in:
chengxl
2025-11-11 11:26:33 +08:00
parent ab57e6b549
commit 501edb9ca2

View File

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