Refactoring & 設定でTwemojiを使うかどうか切り替えられるように
This commit is contained in:
@@ -2,5 +2,5 @@ import parse from '../../../mfm/parse';
|
||||
|
||||
export default function(text: string) {
|
||||
if (!text) return [];
|
||||
return parse(text).filter(t => t.type === 'emoji').map(t => (t as any).emoji);
|
||||
return parse(text).filter(t => t.type === 'emoji' && t.name).map(t => (t as any).name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user