Merge pull request #1868 from albertgasset/MOBILE-2993
MOBILE-2993 grades: Fix icon class parsingmain
commit
d49aeb5e1e
|
@ -544,8 +544,8 @@ export class CoreGradesHelperProvider {
|
||||||
row['image'] = src[1];
|
row['image'] = src[1];
|
||||||
} else if (text.indexOf('<i ') > -1) {
|
} else if (text.indexOf('<i ') > -1) {
|
||||||
row['itemtype'] = 'unknown';
|
row['itemtype'] = 'unknown';
|
||||||
const src = text.match(/class="fa-([^ ]*)"/);
|
const src = text.match(/<i class="(?:[^"]*?\s)?(fa-[a-z0-9-]+)/);
|
||||||
row['icon'] = src[1];
|
row['icon'] = src ? src[1] : '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue