MOBILE-3438 question: Fix DnD question type init js regex

main
Pau Ferrer Ocaña 2020-05-29 11:24:18 +02:00
parent 4f9adba63e
commit a38e831bfd
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ export class CoreQuestionHelperProvider {
const amdRegExp = new RegExp('require\\(\\[["\']qtype_' + question.type + '/question["\']\\],[^f]*' + const amdRegExp = new RegExp('require\\(\\[["\']qtype_' + question.type + '/question["\']\\],[^f]*' +
'function\\(amd\\)[^\\{]*\\{[^a]*amd\\.init\\((["\'](q|question-' + usageId + '-)' + question.slot + 'function\\(amd\\)[^\\{]*\\{[^a]*amd\\.init\\((["\'](q|question-' + usageId + '-)' + question.slot +
'["\'].*)\\);', 'm'); '["\'].*?)\\);', 'm');
const amdMatch = match.match(amdRegExp); const amdMatch = match.match(amdRegExp);
if (amdMatch) { if (amdMatch) {