1
1
Fork 0
This commit is contained in:
Dominik Säume 2024-05-23 18:44:50 +02:00
parent 4baa5537a5
commit e4b8c84fde
Signed by: SZUT-Dominik
GPG key ID: 67D15BB250B41E7C

View file

@ -105,6 +105,7 @@ function parseAnswerElement(index, element, allAnswersElement) {
function parseQuestion(questionElement) {
const textContent = questionElement.textContent.trim();
const matches = textContent.match(IS_QUESTION_REGEX);
return textContent;
return matches !== null ? matches[1] : null;
}