1
0

fix: The fucking parser
All checks were successful
Remote Deploy / deploy (push) Successful in 4s

FATAL ERROR
This commit is contained in:
2025-10-23 11:17:25 +02:00
parent c0eaf0343a
commit c7a9c7cb12

View File

@@ -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")