Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
fix: Strips # from tags when comparing
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Apr 5, 2022
1 parent a22d9b0 commit 60f7d09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/watcher/watcher.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ class Parser {
if (
calendar.supportTimelines &&
allTags &&
allTags.includes(calendar.timelineTag)
allTags
.map((tag) => tag.replace(/#/, ""))
.includes(calendar.timelineTag.replace(/#/, ""))
) {
timelineEvents = this.parseTimelineEvents(
calendar,
Expand Down Expand Up @@ -410,7 +412,7 @@ class Parser {
};
}
const category = calendar.categories.find(
(cat) => cat?.name == fcCategory
(cat) => cat?.name == element.dataset.class ?? fcCategory
);

events.push({
Expand Down

0 comments on commit 60f7d09

Please sign in to comment.