MOBILE-2993 grades: Fix icon class parsing
This commit is contained in:
parent
265f4a40f4
commit
a34f3ae7a9
@ -449,8 +449,8 @@ export class CoreGradesHelperProvider {
|
||||
row['image'] = src[1];
|
||||
} else if (text.indexOf('<i ') > -1) {
|
||||
row['itemtype'] = 'unknown';
|
||||
const src = text.match(/class="fa-([^ ]*)"/);
|
||||
row['icon'] = src[1];
|
||||
const src = text.match(/<i class="(?:[^"]*?\s)?(fa-[a-z0-9-]+)/);
|
||||
row['icon'] = src ? src[1] : '';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user