Fix terser compile error

This commit is contained in:
Standa Lukeš 2020-09-29 09:43:32 +00:00
parent 73f8966ea1
commit 317ddc6ead

View file

@ -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 &&