Merge pull request #3495 from NoelDeMartin/MOBILE-4176

MOBILE-4176 grades: Fix activity names
main
Dani Palou 2022-12-01 13:33:10 +01:00 committed by GitHub
commit 91c5e169da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ export class CoreGradesHelperProvider {
content = CoreTextUtils.cleanTags(content); content = CoreTextUtils.cleanTags(content);
} else { } else {
// The activity type won't be included in the webservice response if behat is running. // The activity type won't be included in the webservice response if behat is running.
content = CoreAppProvider.isAutomated() ? content : content.replace(/<span[^>]+>.+?<\/span>/gi, ''); content = CoreAppProvider.isAutomated() ? content : content.replace(/<span[^>]+>.+?<\/span>/i, '');
content = CoreTextUtils.cleanTags(content, true); content = CoreTextUtils.cleanTags(content, true);
} }