aboutsummaryrefslogtreecommitdiff
path: root/src/graph.ts
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-02-14 23:59:16 -0500
committerDeterminant <ted.sybil@gmail.com>2019-02-14 23:59:16 -0500
commit495e0d4518871e950afcd38d7d3afeb5477076dc (patch)
treefd2bc9f49340a1c7f4f530e6aaa6607d4a4efacf /src/graph.ts
parent6738cb883c37f2e388f1c86c84bd4c34a98699bd (diff)
finish migration
Diffstat (limited to 'src/graph.ts')
-rw-r--r--src/graph.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/graph.ts b/src/graph.ts
index 828e07f..d5a65b2 100644
--- a/src/graph.ts
+++ b/src/graph.ts
@@ -46,7 +46,10 @@ export function getGraphData(
if (!events[id]) continue;
events[id].forEach(event => {
patternsByCal[id].forEach(p => {
- if (!p.event.regex.test(event.summary)) return;
+ if (!p.event.regex.test(event.summary)) {
+ console.log(event.summary, p.event.regex);
+ return;
+ }
if (!cal_results.hasOwnProperty(id)) {
cal_results[id] = 0;
}