From c7a9c7cb12e370e84deab186d609fa9ca21d8763 Mon Sep 17 00:00:00 2001 From: jzitnik-dev Date: Thu, 23 Oct 2025 11:17:25 +0200 Subject: [PATCH] fix: The fucking parser FATAL ERROR --- scrape/parse.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scrape/parse.js b/scrape/parse.js index ee1d392..7da367b 100644 --- a/scrape/parse.js +++ b/scrape/parse.js @@ -51,7 +51,7 @@ export default async function parseThisShit(downloadedFilePath) { if (value && typeof value === "string") { const testResult = regex.test(value); - if (testResult) { + if (testResult && cellAddress.startsWith("A")) { const prefixMatch = value.match(prefixRegex); if (prefixMatch) { const prefix = prefixMatch[0]; @@ -164,6 +164,7 @@ export default async function parseThisShit(downloadedFilePath) { } finalIndex++; + break; } const currentDate = new Date(); @@ -205,4 +206,4 @@ export default async function parseThisShit(downloadedFilePath) { fs.writeFileSync("db/current.json", JSON.stringify(data, null, 2)); } -// parseThisShit("downloads/table.xlsx") +parseThisShit("downloads/table.xlsx")