Skip to content

Commit 381506a

Browse files
committed
Bring in latest JSON-LD fork code.
* Much better handling of people and bot data. * Changes to HTML output. * Replacement handling. The output now matches what is in place on https://json-ld.org/minutes/
1 parent 41f403f commit 381506a

File tree

2 files changed

+262
-129
lines changed

2 files changed

+262
-129
lines changed

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,12 @@ async.waterfall([ function(callback) {
190190
topic: [],
191191
resolution: []
192192
};
193-
summary.topic = data.match(/topic: (.*)/ig);
193+
if(data.search(/agendum \d+\s+\-\- (.*) \-\-/i)) {
194+
summary.topic = data.match(/agendum \d+\s+\-\- (.*) \-\-/i);
195+
} else if(data.search(/(?<!sub)topic: (.*)/ig)) {
196+
summary.topic = data.match(/(?<!sub)topic: (.*)/ig);
197+
}
198+
summary.topic = data.match(/(?<!sub)topic: (.*)/ig);
194199
summary.resolution = data.match(/resolved: (.*)/ig);
195200

196201
// strip extraneous information

0 commit comments

Comments
 (0)