FATAL ERROR
This commit is contained in:
@@ -51,7 +51,7 @@ export default async function parseThisShit(downloadedFilePath) {
|
|||||||
|
|
||||||
if (value && typeof value === "string") {
|
if (value && typeof value === "string") {
|
||||||
const testResult = regex.test(value);
|
const testResult = regex.test(value);
|
||||||
if (testResult) {
|
if (testResult && cellAddress.startsWith("A")) {
|
||||||
const prefixMatch = value.match(prefixRegex);
|
const prefixMatch = value.match(prefixRegex);
|
||||||
if (prefixMatch) {
|
if (prefixMatch) {
|
||||||
const prefix = prefixMatch[0];
|
const prefix = prefixMatch[0];
|
||||||
@@ -164,6 +164,7 @@ export default async function parseThisShit(downloadedFilePath) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
finalIndex++;
|
finalIndex++;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const currentDate = new Date();
|
const currentDate = new Date();
|
||||||
@@ -205,4 +206,4 @@ export default async function parseThisShit(downloadedFilePath) {
|
|||||||
fs.writeFileSync("db/current.json", JSON.stringify(data, null, 2));
|
fs.writeFileSync("db/current.json", JSON.stringify(data, null, 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
// parseThisShit("downloads/table.xlsx")
|
parseThisShit("downloads/table.xlsx")
|
||||||
|
|||||||
Reference in New Issue
Block a user