Browse Source

Fix terser compile error

mj-deploy
Standa Lukeš 4 years ago
parent
commit
317ddc6ead
  1. 4
      frontend/src/ksp-task-grabber.ts

4
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()) const titleMatch = /(\d-Z?\d+-\d+) (.*?)( \((\d+) bod.*\))?/.exec(e.innerText.trim())
if (!titleMatch) { if (!titleMatch) {
var [_, id, name, _, points] = ["", startElementId, "Neznámé jméno úlohy", "", ""] var [_, id, name, __, points] = ["", startElementId, "Neznámé jméno úlohy", "", ""]
} else { } else {
var [_, id, name, _, points] = titleMatch var [_, id, name, __, points] = titleMatch
} }
while (e.nextElementSibling && while (e.nextElementSibling &&