fix: 将挂勺加入勺子用法白名单,修复 issue #1689 (#1725)

挂勺是中餐烹饪术语,表示酱汁浓稠到可以挂在勺子上的状态。
这是一个描述烹饪状态的词,而非计量单位,应该被允许使用。

Fixes Anduin2017/HowToCook#1689
This commit is contained in:
sunblack110
2026-01-06 01:01:47 +08:00
committed by GitHub
parent d8ea52dfee
commit 0e5d0b6ea8

View File

@@ -99,7 +99,7 @@ const validators = [
async (filePath, lines, errors) => {
const count = keyword => lines.filter(l => l.includes(keyword)).length;
if (count('勺') > count('勺子') + count('炒勺') + count('漏勺') + count('吧勺')) {
if (count('勺') > count('勺子') + count('炒勺') + count('漏勺') + count('吧勺') + count('挂勺')) {
errors.push(`文件 ${filePath} 不符合仓库的规范!勺 不是一个精准的单位!`);
}
if (count(' 杯') > count('杯子')) {