docs(glossary): 合并 c1–c5 术语建议;check:copy 加拦「无需」

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-07 02:11:33 +08:00
1 parent a4c554f841
commit d9af105387
2 files changed
+36 -21

No files matched your search

+3 -2
View File
@@ -75,7 +75,7 @@ const BANNED_WORDS = new RegExp(
"太棒了",
"哎呀",
"别担心",
"无需担心",
"无需",
"好消息是",
"请(?:先|检查|输入|重新|重试|选择|确认|稍后|填写|勿|务必|联系|注意|在|到|用)",
"进行(?:操作|处理|整理|下载|搜索|识别|删除|修改|设置|配置|校验|验证|检查|更新|同步|刷新|创建|安装|连接|测试|登录|保存|上传|备份|恢复|重试|清理)",
@@ -243,7 +243,8 @@ function fragmentsOf(e) {
/** 外层是中文模板时,插值片段开头的半角 , ; : 会紧贴中文 */
let fragIssues = [];
function checkFragment(f, src) {
const text = f.type === "StringLiteral" ? src.slice(f.start + 1, f.end - 1) : src.slice(f.quasis[0].start, f.quasis[0].end);
const text =
f.type === "StringLiteral" ? src.slice(f.start + 1, f.end - 1) : src.slice(f.quasis[0].start, f.quasis[0].end);
const m = /^\s*[,;:](?!\/\/)/.exec(text);
if (m) fragIssues.push({ start: f.start + 1, rule: "中文模板的插值片段以半角标点开头", excerpt: text.slice(0, 20) });
}