mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-18 02:21:17 +00:00
chore(utils): add iconSource
API to Emoji
This commit is contained in:
parent
8fa740b12a
commit
3df86befad
@ -43,6 +43,11 @@ QtObject {
|
||||
}
|
||||
})
|
||||
}
|
||||
function iconSource(text) {
|
||||
const parsed = parse(text);
|
||||
const match = parsed.match('src="(.*\.svg).*"');
|
||||
return (match && match.length >= 2) ? match[1] : undefined;
|
||||
}
|
||||
function iconId(text) {
|
||||
const parsed = parse(text);
|
||||
const match = parsed.match('src=".*\/(.+?).svg');
|
||||
|
Loading…
x
Reference in New Issue
Block a user