Commit 6d80e0f0 authored by nanahira's avatar nanahira

lflist_opt

parent a3df5638
...@@ -112,18 +112,20 @@ ...@@ -112,18 +112,20 @@
}); });
} }
} catch (error1) {} } catch (error1) {}
ref = fs.readFileSync('ygopro/lflist.conf', 'utf8').match(/!.*/g); try {
for (j = 0, len = ref.length; j < len; j++) { ref = fs.readFileSync('ygopro/lflist.conf', 'utf8').match(/!.*/g);
list = ref[j]; for (j = 0, len = ref.length; j < len; j++) {
date = list.match(/!([\d\.]+)/); list = ref[j];
if (!date) { date = list.match(/!([\d\.]+)/);
continue; if (!date) {
} continue;
results.push({ }
date: moment(list.match(/!([\d\.]+)/)[1], 'YYYY.MM.DD').utcOffset("-08:00"), results.push({
tcg: list.indexOf('TCG') !== -1 date: moment(list.match(/!([\d\.]+)/)[1], 'YYYY.MM.DD').utcOffset("-08:00"),
}); tcg: list.indexOf('TCG') !== -1
} });
}
} catch (error1) {}
return results; return results;
})(); })();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment