Commit 12055d02 authored by nanahira's avatar nanahira

fix

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