MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / unwrap

Function unwrap

apps/web/ui/Message/Emoji/index.tsx:23–28  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

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

Callers 1

EmojiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected