This commit is contained in:
syuilo
2018-11-05 19:29:50 +09:00
parent 65961bc15b
commit 3abe632f06
2 changed files with 4 additions and 12 deletions

View File

@@ -1,6 +0,0 @@
import parse from '../../../mfm/parse';
export default function(text: string) {
if (!text) return [];
return parse(text).filter(t => t.type === 'emoji' && t.name).map(t => (t as any).name);
}