(input: string)
| 11 | }; |
| 12 | |
| 13 | export function parseStickerString(input: string): [string, string] { |
| 14 | if (!input) { |
| 15 | return ["", ""]; |
| 16 | } |
| 17 | const match = input.match(/^(.*?)\s*\/\/\s*(.*)$/); |
| 18 | if (match) { |
| 19 | return [match[1], match[2]]; |
| 20 | } else { |
| 21 | return ["", input]; |
| 22 | } |
| 23 | } |
| 24 | export const unifiedToNative = (unified: string) => { |
| 25 | const unicodes = unified.split("-"); |
| 26 | const codePoints = unicodes.map((u) => `0x${u}`); |
no test coverage detected