Pagination of edited / viewed responses
This commit is contained in:
Tom Moor
2018-08-11 00:46:10 -07:00
parent 6b2211f135
commit 63f6d61ac0
3 changed files with 20 additions and 19 deletions

View File

@@ -1,6 +1,5 @@
// @flow
export function toCodePoint(unicodeSurrogates, sep) {
export function toCodePoint(unicodeSurrogates: string, sep: ?string) {
var r = [],
c = 0,
p = 0,
@@ -19,6 +18,6 @@ export function toCodePoint(unicodeSurrogates, sep) {
return r.join(sep || '-');
}
export function emojiToUrl(string: text) {
return `https://twemoji.maxcdn.com/2/72x72/${toCodePoint(string)}.png`;
export function emojiToUrl(text: string) {
return `https://twemoji.maxcdn.com/2/72x72/${toCodePoint(text)}.png`;
}