删除所有适量。

This commit is contained in:
Anduin Xue
2022-03-21 02:14:45 +08:00
parent b612a19dae
commit 6d5668bcbd
20 changed files with 40 additions and 38 deletions

View File

@@ -19,12 +19,12 @@ async function main() {
if (dataLines.filter(line => line.includes(' 勺')).length > 0) {
errors.push(`File ${filePath} is invalid! 勺 is not an accurate unit!`);
}
// if (dataLines.filter(line => line.includes('适量')).length > 0) {
// errors.push(`File ${filePath} is invalid! 适量 is not an accurate unit!`);
// }
// if (dataLines.filter(line => line.includes('左右')).length > 0) {
// errors.push(`File ${filePath} is invalid! 左右 is not an accurate unit!`);
// }
if (dataLines.filter(line => line.includes('适量')).length > 0) {
errors.push(`File ${filePath} is invalid! 适量 is not an accurate unit!`);
}
if (dataLines.filter(line => line.includes('左右')).length > 0) {
errors.push(`File ${filePath} is invalid! 左右 is not an accurate unit!`);
}
if (titles[0].trim() != "# " + filename + "的做法") {
errors.push(`File ${filePath} is invalid! It's title should be: ${"# " + filename + "的做法"}! It was ${titles[0].trim()}!`);
continue;