Commit 12055d02 authored by nanahira's avatar nanahira

fix

parent 5bb48bed
......@@ -217,7 +217,7 @@ class ResolveData
loadLFList = (path) ->
try
for list in fs.promises.readFile(path, 'utf8').match(/!.*/g)
for list in (await fs.promises.readFile(path, 'utf8')).match(/!.*/g)
date=list.match(/!([\d\.]+)/)
continue unless date
lflists.push({date: moment(list.match(/!([\d\.]+)/)[1], 'YYYY.MM.DD').utcOffset("-08:00"), tcg: list.indexOf('TCG') != -1})
......
......@@ -268,10 +268,10 @@
}).call(this);
loadLFList = function(path) {
loadLFList = async function(path) {
var date, j, len, list, ref, results;
try {
ref = fs.promises.readFile(path, 'utf8').match(/!.*/g);
ref = ((await fs.promises.readFile(path, 'utf8'))).match(/!.*/g);
results = [];
for (j = 0, len = ref.length; j < len; j++) {
list = ref[j];
......
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