Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
syrflover committed Jul 9, 2024
1 parent cf499ea commit f3f1202
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/channel/parseChannels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ export function parseChannels(text: string) {
let currentQuarter = "";
let currentIndex = [0, 0];

let ignore = false;
let ignoreSection = false;

for (let line of lines) {
let rules = channels[currentIndex[0]].rules;
let rule = rules[currentIndex[1]];

if (line.startsWith("# *")) {
ignore = !ignore;
console.log(ignore);
ignoreSection = !ignoreSection;
console.log(ignoreSection);
}

// next
if (
currentIndex[1] > rules.length - 1 ||
(ignore && line.startsWith("- url:"))
(ignoreSection && line.startsWith("- url:"))
) {
currentIndex[0] += 1;
currentIndex[1] = 0;
Expand Down

0 comments on commit f3f1202

Please sign in to comment.