Skip to content

Commit 74c327b

Browse files
committed
fix: allow optional spaces in calorie patterns and apply textlint fixes
1 parent fb4f1d1 commit 74c327b

364 files changed

Lines changed: 366 additions & 366 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/manual_lint.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ const validators = [
7575
const contentBetweenTitles = lines.slice(mainTitleIndex + 1, firstSecondTitleIndex);
7676
let hasDifficultyLine = false;
7777
let hasCalorieLine = false;
78-
const difficultyPatternGeneral = /^(*)$/;
79-
const difficultyPatternStrict = /^{1,5}$/;
80-
const caloriePattern = /^\d+$/;
78+
const difficultyPatternGeneral = /^\s*(*)\s*$/;
79+
const difficultyPatternStrict = /^\s*{1,5}\s*$/;
80+
const caloriePattern = /^\s*\d+\s*$/;
8181

8282
for (const line of contentBetweenTitles) {
8383
if (difficultyPatternGeneral.test(line)) {

dishes/aquatic/咖喱炒蟹.md

Lines changed: 1 addition & 1 deletion

dishes/aquatic/响油鳝丝.md

Lines changed: 1 addition & 1 deletion

dishes/aquatic/小龙虾/小龙虾.md

Lines changed: 1 addition & 1 deletion

dishes/aquatic/干煎阿根廷红虾/干煎阿根廷红虾.md

Lines changed: 1 addition & 1 deletion

dishes/aquatic/微波葱姜黑鳕鱼.md

Lines changed: 1 addition & 1 deletion

dishes/aquatic/水煮鱼.md

Lines changed: 1 addition & 1 deletion

dishes/aquatic/油焖大虾/油焖大虾.md

Lines changed: 1 addition & 1 deletion

dishes/aquatic/混合烤鱼/烤鱼.md

Lines changed: 1 addition & 1 deletion

dishes/aquatic/清蒸生蚝.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)