From a34f3ae7a9da0c450aa9339aa8dbb96d11e32bb3 Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Thu, 25 Apr 2019 16:31:17 +0200 Subject: [PATCH] MOBILE-2993 grades: Fix icon class parsing --- src/core/grades/providers/helper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/grades/providers/helper.ts b/src/core/grades/providers/helper.ts index 8f206340d..e921cd9b7 100644 --- a/src/core/grades/providers/helper.ts +++ b/src/core/grades/providers/helper.ts @@ -449,8 +449,8 @@ export class CoreGradesHelperProvider { row['image'] = src[1]; } else if (text.indexOf(' -1) { row['itemtype'] = 'unknown'; - const src = text.match(/class="fa-([^ ]*)"/); - row['icon'] = src[1]; + const src = text.match(/