Skip to content

Commit 0e5d0b6

Browse files
author
sunblack110
authored
fix: 将挂勺加入勺子用法白名单,修复 issue #1689 (#1725)
挂勺是中餐烹饪术语,表示酱汁浓稠到可以挂在勺子上的状态。 这是一个描述烹饪状态的词,而非计量单位,应该被允许使用。 Fixes #1689
1 parent d8ea52d commit 0e5d0b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/manual_lint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const validators = [
9999
async (filePath, lines, errors) => {
100100
const count = keyword => lines.filter(l => l.includes(keyword)).length;
101101

102-
if (count('勺') > count('勺子') + count('炒勺') + count('漏勺') + count('吧勺')) {
102+
if (count('勺') > count('勺子') + count('炒勺') + count('漏勺') + count('吧勺') + count('挂勺')) {
103103
errors.push(`文件 ${filePath} 不符合仓库的规范!勺 不是一个精准的单位!`);
104104
}
105105
if (count(' 杯') > count('杯子')) {

0 commit comments

Comments
 (0)