From 5781bc1f8a4c01072f93354732de27ad2943e40e Mon Sep 17 00:00:00 2001 From: jzitnik-dev Date: Thu, 4 Sep 2025 08:28:47 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=C3=9Aklid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scrape/parse.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {}