diff --git a/scrape/parse.js b/scrape/parse.js index e108929..c3e35df 100644 --- a/scrape/parse.js +++ b/scrape/parse.js @@ -70,7 +70,8 @@ export default async function parseThisShit(downloadedFilePath) { let d = true; try { - if (currentSheet[key]["w"].startsWith("úklid") || currentSheet[key]["w"].trim().length == 0) { + const regex = /^úklid\s+\d+\s+[A-Za-z]{2}$/; + if (regex.test(currentSheet[key]["w"]) || currentSheet[key]["w"].trim().length == 0) { d = false; } } catch {}