diff --git a/script.js b/script.js index aa3dc71..3357482 100644 --- a/script.js +++ b/script.js @@ -42,8 +42,8 @@ function parseQuestions(data) { parsedData.forEach(item => { let currentQuestion = { question: item.question, - correctAnswers: item.right_answers.map(answer => answer.replace(/(\w)\^(\w+)/g, '$1$2').replace(/
/g, '').replace(/>/g, '>').replace(/ answer.replace(/(\w)\^(\w+)/g, '$1$2').replace(/
/g, '').replace(/>/g, '>').replace(/ answer.replace(/(\w)\^(\w+)/g, '$1$2').replace(/>/g, '>').replace(/').replace(/<\/sup>/g, '')), + incorrectAnswers: item.wrong_answers.map(answer => answer.replace(/(\w)\^(\w+)/g, '$1$2').replace(/>/g, '>').replace(/').replace(/<\/sup>/g, '')) }; questions.push(currentQuestion); });