fix: allow optional spaces in calorie patterns and apply textlint fixes

This commit is contained in:
Anduin Xue
2026-05-18 10:17:53 +00:00
parent fb4f1d1d95
commit 74c327b494
364 changed files with 366 additions and 366 deletions

View File

@@ -75,9 +75,9 @@ const validators = [
const contentBetweenTitles = lines.slice(mainTitleIndex + 1, firstSecondTitleIndex); const contentBetweenTitles = lines.slice(mainTitleIndex + 1, firstSecondTitleIndex);
let hasDifficultyLine = false; let hasDifficultyLine = false;
let hasCalorieLine = false; let hasCalorieLine = false;
const difficultyPatternGeneral = /^预估烹饪难度:(★*)$/; const difficultyPatternGeneral = /^预估烹饪难度:\s*(★*)\s*$/;
const difficultyPatternStrict = /^预估烹饪难度:★{1,5}$/; const difficultyPatternStrict = /^预估烹饪难度:\s*★{1,5}\s*$/;
const caloriePattern = /^预估卡路里:\d+大卡$/; const caloriePattern = /^预估卡路里:\s*\d+\s*大卡$/;
for (const line of contentBetweenTitles) { for (const line of contentBetweenTitles) {
if (difficultyPatternGeneral.test(line)) { if (difficultyPatternGeneral.test(line)) {

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里815大卡 预估卡路里815 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里556大卡 预估卡路里556 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里571大卡 预估卡路里571 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -10,7 +10,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里309大卡 预估卡路里309 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里749大卡 预估卡路里749 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里248大卡 预估卡路里248 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -2,7 +2,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里584大卡 预估卡路里584 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -2,7 +2,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里2152大卡 预估卡路里2152 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -2,7 +2,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里184大卡 预估卡路里184 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -2,7 +2,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里385大卡 预估卡路里385 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里519大卡 预估卡路里519 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -2,7 +2,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里1011大卡 预估卡路里1011 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -7,7 +7,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里570大卡 预估卡路里570 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -5,7 +5,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里333大卡 预估卡路里333 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -2,7 +2,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里1051大卡 预估卡路里1051 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里2111大卡 预估卡路里2111 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -5,7 +5,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里637大卡 预估卡路里637 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -2,7 +2,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里311大卡 预估卡路里311 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里299大卡 预估卡路里299 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里456大卡 预估卡路里456 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里526大卡 预估卡路里526 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里1229大卡 预估卡路里1229 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里468大卡 预估卡路里468 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -7,7 +7,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里1092大卡 预估卡路里1092 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -5,7 +5,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里820大卡 预估卡路里820 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里792大卡 预估卡路里792 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -5,7 +5,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里524大卡 预估卡路里524 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里741大卡 预估卡路里741 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里223大卡 预估卡路里223 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -2,7 +2,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里113大卡 预估卡路里113 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里86大卡 预估卡路里86 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里169大卡 预估卡路里169 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里151大卡 预估卡路里151 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里308大卡 预估卡路里308 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里668大卡 预估卡路里668 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -2,7 +2,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里1050大卡 预估卡路里1050 大卡
--- ---

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里617大卡 预估卡路里617 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里108大卡 预估卡路里108 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里72大卡 预估卡路里72 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里72大卡 预估卡路里72 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -3,7 +3,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里769大卡 预估卡路里769 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里535大卡 预估卡路里535 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里421大卡 预估卡路里421 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里254大卡 预估卡路里254 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -5,7 +5,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里258大卡 预估卡路里258 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -9,7 +9,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里599大卡 预估卡路里599 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里193大卡 预估卡路里193 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里143大卡 预估卡路里143 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里400大卡 预估卡路里400 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里379大卡 预估卡路里379 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里569大卡 预估卡路里569 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里669大卡 预估卡路里669 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里560大卡 预估卡路里560 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -7,7 +7,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里1854大卡 预估卡路里1854 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里111大卡 预估卡路里111 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -5,7 +5,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里1826大卡 预估卡路里1826 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里1028大卡 预估卡路里1028 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里146大卡 预估卡路里146 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里1940大卡 预估卡路里1940 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里2069大卡 预估卡路里2069 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -2,7 +2,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里177大卡 预估卡路里177 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里400大卡 预估卡路里400 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里397大卡 预估卡路里397 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里162大卡 预估卡路里162 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里1160大卡 预估卡路里1160 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★★★ 预估烹饪难度:★★★★★
预估卡路里274大卡 预估卡路里274 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里809大卡 预估卡路里809 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★★★ 预估烹饪难度:★★★★★
预估卡路里176大卡 预估卡路里176 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里1026大卡 预估卡路里1026 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里266大卡 预估卡路里266 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里169大卡 预估卡路里169 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里863大卡 预估卡路里863 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里622大卡 预估卡路里622 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里374大卡 预估卡路里374 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★★★ 预估烹饪难度:★★★★★
预估卡路里160大卡 预估卡路里160 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里1197大卡 预估卡路里1197 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -5,7 +5,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里1653大卡 预估卡路里1653 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里1034大卡 预估卡路里1034 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里1313大卡 预估卡路里1313 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里234大卡 预估卡路里234 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里129大卡 预估卡路里129 大卡
--- ---

View File

@@ -9,7 +9,7 @@ B-52 是鸡尾酒中喝法比较独特的一种,要配上短吸管,餐巾纸
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里80大卡 预估卡路里80 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -7,7 +7,7 @@ Mojito 是一种传统的古巴高球鸡尾酒。
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里187大卡 预估卡路里187 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里296大卡 预估卡路里296 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -9,7 +9,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里110大卡 预估卡路里110 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里135大卡 预估卡路里135 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里450大卡 预估卡路里450 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -2,7 +2,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里184大卡 预估卡路里184 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里81大卡 预估卡路里81 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里661大卡 预估卡路里661 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里141大卡 预估卡路里141 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -7,7 +7,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里185大卡 预估卡路里185 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里173大卡 预估卡路里173 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里392大卡 预估卡路里392 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -10,7 +10,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里173大卡 预估卡路里173 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★ 预估烹饪难度:★
预估卡路里231大卡 预估卡路里231 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -4,7 +4,7 @@
预估烹饪难度:★★ 预估烹饪难度:★★
预估卡路里81大卡 预估卡路里81 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★ 预估烹饪难度:★★★
预估卡路里180大卡 预估卡路里180 大卡
## 必备原料和工具 ## 必备原料和工具

View File

@@ -6,7 +6,7 @@
预估烹饪难度:★★★★ 预估烹饪难度:★★★★
预估卡路里420大卡 预估卡路里420 大卡
## 必备原料和工具 ## 必备原料和工具

Some files were not shown because too many files have changed in this diff Show More