(text: string)
| 21 | EMOJIS['+1'] = '👍'; |
| 22 | |
| 23 | function unwrap(text: string): string { |
| 24 | if (text.startsWith(':') && text.endsWith(':')) { |
| 25 | return text.slice(1, text.length - 1); |
| 26 | } |
| 27 | return text; |
| 28 | } |
| 29 | |
| 30 | function title(text: string) { |
| 31 | return text.replace(/_/g, ' ').replace(/-/g, ' '); |