forked from FoundKeyGang/FoundKey
client: also autocomplete flag emoji
Changelog: Changed
This commit is contained in:
parent
b030ced51c
commit
749015807a
1 changed files with 2 additions and 4 deletions
|
@ -54,15 +54,13 @@ type EmojiDef = {
|
||||||
isCustomEmoji?: boolean;
|
isCustomEmoji?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
const lib = emojilist.filter(x => x.category !== 'flags');
|
const emjdb: EmojiDef[] = emojilist.map(x => ({
|
||||||
|
|
||||||
const emjdb: EmojiDef[] = lib.map(x => ({
|
|
||||||
emoji: x.char,
|
emoji: x.char,
|
||||||
name: x.name,
|
name: x.name,
|
||||||
url: char2filePath(x.char),
|
url: char2filePath(x.char),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
for (const x of lib) {
|
for (const x of emojilist) {
|
||||||
if (x.keywords) {
|
if (x.keywords) {
|
||||||
for (const k of x.keywords) {
|
for (const k of x.keywords) {
|
||||||
emjdb.push({
|
emjdb.push({
|
||||||
|
|
Loading…
Reference in a new issue