diff --git a/packages/ui-default/pages/problem_detail.page.jsx b/packages/ui-default/pages/problem_detail.page.jsx index 34bc18c23..b44829996 100644 --- a/packages/ui-default/pages/problem_detail.page.jsx +++ b/packages/ui-default/pages/problem_detail.page.jsx @@ -176,51 +176,37 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor async function loadObjective() { $('.outer-loader-container').show(); const ans = {}; - let objNum = 0; + let cnt = 0; const reg = /{{ (input|select|multiselect)\(\d+(-\d+)?\) }}/g; $('.problem-content .typo').children().each((i, e) => { if (e.tagName === 'PRE' && !e.children[0].className.includes('#input')) return; - const objQuestions = []; - let objQuestion = reg.exec(e.innerText); - while (objQuestion != null) { - objQuestions.push(objQuestion); - objQuestion = reg.exec(e.innerText); - } - objQuestions.forEach((obj) => { - objNum++; - const [objData, objType] = obj; - const objID = objData.replace(/{{ (input|select|multiselect)\((\d+(-\d+)?)\) }}/, '$2'); - if (objType === 'input') { - $(e).html($(e).html().replace(objData, ` -