This commit is contained in:
@@ -92,14 +92,14 @@ export default async function parseThisShit(downloadedFilePath) {
|
|||||||
try {
|
try {
|
||||||
const regex = /^úklid\s+(?:\d+\s+)?[A-Za-z]{2}$/
|
const regex = /^úklid\s+(?:\d+\s+)?[A-Za-z]{2}$/
|
||||||
const cellText = cell.text || ""
|
const cellText = cell.text || ""
|
||||||
if (regex.test(cellText.trim()) || cellText.trim().length == 0 || cell.fill.fgColor === undefined) {
|
if (regex.test(cellText.trim()) || cellText.trim().length == 0 || cell.fill?.fgColor === undefined) {
|
||||||
d = false
|
d = false
|
||||||
}
|
}
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|
||||||
if (d) {
|
if (d) {
|
||||||
let text = cell.text;
|
let text = cell.text;
|
||||||
if (cell.fill.fgColor?.argb == "FFFFFF00") {
|
if (cell.fill?.fgColor?.argb == "FFFFFF00") {
|
||||||
text += "\n(bude upřesněno)";
|
text += "\n(bude upřesněno)";
|
||||||
}
|
}
|
||||||
final2[parsedKey] = text || ""
|
final2[parsedKey] = text || ""
|
||||||
|
|||||||
Reference in New Issue
Block a user