From ef1f218bb70cea5c3bb56604260c23bc4ae83f0d Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Mon, 27 Nov 2023 19:16:17 +0800 Subject: [PATCH] Add comment for `;` not convert reason. --- autocorrect/src/rule/fullwidth.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autocorrect/src/rule/fullwidth.rs b/autocorrect/src/rule/fullwidth.rs index 872d657b..f74c92d6 100644 --- a/autocorrect/src/rule/fullwidth.rs +++ b/autocorrect/src/rule/fullwidth.rs @@ -96,7 +96,9 @@ mod tests { "蚂蚁疾奔:蚂蚁集团两地上市~全速推进!" => "蚂蚁疾奔:蚂蚁集团两地上市~全速推进!", "蚂蚁集团是阿里巴巴 (BABA.N) 旗下金融科技子公司" => "蚂蚁集团是阿里巴巴 (BABA.N) 旗下金融科技子公司", "Dollar 的演示 $阿里巴巴.US$ 股票标签" => "Dollar 的演示 $阿里巴巴.US$ 股票标签", - "确保">HTML Entity<"的字符"不会被处理" Ruby&Go" => "确保">HTML Entity<"的字符"不会被处理" Ruby&Go" + "确保">HTML Entity<"的字符"不会被处理" Ruby&Go" => "确保">HTML Entity<"的字符"不会被处理" Ruby&Go", + // No ; convert, because it's danger. + "中文;中文" => "中文;中文" ); assert_cases(cases);