From 1645927f40659e33cd57b019d92f299b67f7c335 Mon Sep 17 00:00:00 2001 From: FReenen Date: Wed, 15 May 2024 20:13:04 +0200 Subject: [PATCH] update some line parsing --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index cd76382..ed0881e 100644 --- a/main.js +++ b/main.js @@ -222,7 +222,7 @@ function processLine(line, noDate, date, data) noDate = noDate.replace(/[ \t][ \t]+/g, ' '); // remve multeple spaces/tabs in a row // title and group - res = noDate.match(/^ ?- ([^\[\]<>{}]*) - ([^\[\]<>{}]*)/); + res = noDate.match(/^ ?- (.*) - (.*)/); if (res != null) { item["group"] = res[1]; @@ -231,7 +231,7 @@ function processLine(line, noDate, date, data) else { // no group look for only title - res = noDate.match(/^ ?- ([^\[\]<>\{\}]*)/); + res = noDate.match(/^ ?- (.*)/); if (res != null) { item["title"] = res[1];