From 9306378f1bbc7b09bfc266ec88b4d489d989ca9a Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 1 Dec 2022 13:22:26 +0100 Subject: [PATCH] MOBILE-4176 grades: Fix activity names --- src/core/features/grades/services/grades-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/features/grades/services/grades-helper.ts b/src/core/features/grades/services/grades-helper.ts index 81243a28d..b782456f0 100644 --- a/src/core/features/grades/services/grades-helper.ts +++ b/src/core/features/grades/services/grades-helper.ts @@ -142,7 +142,7 @@ export class CoreGradesHelperProvider { content = CoreTextUtils.cleanTags(content); } else { // The activity type won't be included in the webservice response if behat is running. - content = CoreAppProvider.isAutomated() ? content : content.replace(/]+>.+?<\/span>/gi, ''); + content = CoreAppProvider.isAutomated() ? content : content.replace(/]+>.+?<\/span>/i, ''); content = CoreTextUtils.cleanTags(content, true); }