From 317ddc6ead818f18d1ce020faac3eb13530498e1 Mon Sep 17 00:00:00 2001 From: exyi Date: Tue, 29 Sep 2020 09:43:32 +0000 Subject: [PATCH] Fix terser compile error --- frontend/src/ksp-task-grabber.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/ksp-task-grabber.ts b/frontend/src/ksp-task-grabber.ts index 73e1d93..bcf9e1b 100644 --- a/frontend/src/ksp-task-grabber.ts +++ b/frontend/src/ksp-task-grabber.ts @@ -77,9 +77,9 @@ function parseTask(startElementId: string, html: string, currentPath: string): T const titleMatch = /(\d-Z?\d+-\d+) (.*?)( \((\d+) bod.*\))?/.exec(e.innerText.trim()) if (!titleMatch) { - var [_, id, name, _, points] = ["", startElementId, "Neznámé jméno úlohy", "", ""] + var [_, id, name, __, points] = ["", startElementId, "Neznámé jméno úlohy", "", ""] } else { - var [_, id, name, _, points] = titleMatch + var [_, id, name, __, points] = titleMatch } while (e.nextElementSibling &&