MOBILE-3438 question: Fix DnD question type init js regex
parent
4f9adba63e
commit
a38e831bfd
|
@ -277,7 +277,7 @@ export class CoreQuestionHelperProvider {
|
|||
|
||||
const amdRegExp = new RegExp('require\\(\\[["\']qtype_' + question.type + '/question["\']\\],[^f]*' +
|
||||
'function\\(amd\\)[^\\{]*\\{[^a]*amd\\.init\\((["\'](q|question-' + usageId + '-)' + question.slot +
|
||||
'["\'].*)\\);', 'm');
|
||||
'["\'].*?)\\);', 'm');
|
||||
const amdMatch = match.match(amdRegExp);
|
||||
|
||||
if (amdMatch) {
|
||||
|
|
Loading…
Reference in New Issue