diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-12-05 13:44:24 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-05 13:44:24 -0600 |
commit | 39bab0bb08c0fbe1a3deeeb5178e97ac15242bcd (patch) | |
tree | 6947a4e8c14b17aff8ff3eefddc3881d61ee6c2e /src/view/com/util/RichText.tsx | |
parent | 65e5f2ac863756335070377813817fa87c94d262 (diff) | |
download | voidsky-39bab0bb08c0fbe1a3deeeb5178e97ac15242bcd.tar.zst |
Switch to System font to fix emoji rendering
Diffstat (limited to 'src/view/com/util/RichText.tsx')
-rw-r--r-- | src/view/com/util/RichText.tsx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/view/com/util/RichText.tsx b/src/view/com/util/RichText.tsx index 3f0e99087..835a3515b 100644 --- a/src/view/com/util/RichText.tsx +++ b/src/view/com/util/RichText.tsx @@ -98,13 +98,3 @@ function* toSegments(text: string, entities: Entity[]) { yield text.slice(cursor, text.length) } } - -function stripUsername(v: string): string { - return v.trim().replace('@', '') -} - -function isSameLink(a: string, b: string) { - a = a.startsWith('http') ? a : `https://${a}` - b = b.startsWith('http') ? b : `https://${b}` - return a === b -} |