From a38e831bfdb2cee2621117739d33d9057d678a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 29 May 2020 11:24:18 +0200 Subject: [PATCH] MOBILE-3438 question: Fix DnD question type init js regex --- src/core/question/providers/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/question/providers/helper.ts b/src/core/question/providers/helper.ts index 378c1a2cb..edaf17390 100644 --- a/src/core/question/providers/helper.ts +++ b/src/core/question/providers/helper.ts @@ -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) {