From d106fb39abf8fe17c00e562c1237fcacfe158345 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 26 Dec 2022 16:04:56 +0900 Subject: feat: introduce fluent emoji --- packages/client/src/scripts/twemoji-base.ts | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 packages/client/src/scripts/twemoji-base.ts (limited to 'packages/client/src/scripts/twemoji-base.ts') diff --git a/packages/client/src/scripts/twemoji-base.ts b/packages/client/src/scripts/twemoji-base.ts deleted file mode 100644 index 638aae3284..0000000000 --- a/packages/client/src/scripts/twemoji-base.ts +++ /dev/null @@ -1,12 +0,0 @@ -export const twemojiSvgBase = '/twemoji'; - -export function char2fileName(char: string): string { - let codes = Array.from(char).map(x => x.codePointAt(0)?.toString(16)); - if (!codes.includes('200d')) codes = codes.filter(x => x !== 'fe0f'); - codes = codes.filter(x => x && x.length); - return codes.join('-'); -} - -export function char2filePath(char: string): string { - return `${twemojiSvgBase}/${char2fileName(char)}.svg`; -} -- cgit v1.2.3-freya