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); }