Skip to content

Commit

Permalink
不再允许使用杯子作为单位,因为 杯 不精准。
Browse files Browse the repository at this point in the history
  • Loading branch information
Anduin2017 committed May 8, 2022
1 parent 5204574 commit a35826b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/manual_lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ async function main() {
dataLines.filter(line => line.includes('吧勺')).length) {
errors.push(`文件 ${filePath} 不符合仓库的规范!勺 不是一个精准的单位!`);
}
if (dataLines.filter(line => line.includes(' 杯')).length >
dataLines.filter(line => line.includes('杯子')).length) {
errors.push(`文件 ${filePath} 不符合仓库的规范!杯 不是一个精准的单位!`);
}
if (dataLines.filter(line => line.includes('适量')).length > 0) {
errors.push(`文件 ${filePath} 不符合仓库的规范!适量 不是一个精准的描述!请给出克 g 或毫升 ml。`);
}
Expand Down
2 changes: 1 addition & 1 deletion dishes/drink/杨枝甘露.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## 必备原料和工具

-
- 杯子
- 水果刀
- 牛奶
- 冰块
Expand Down
2 changes: 1 addition & 1 deletion dishes/soup/皮蛋瘦肉粥.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* 饮用水 1 升
* 皮蛋 2 颗
* 瘦肉 100g
* 大米 0.5 杯
* 大米 150ml
* 小葱 1 棵
* 香菜 1 棵
* 生菜 4 叶
Expand Down

0 comments on commit a35826b

Please sign in to comment.