MCPcopy Create free account
hub / github.com/Justineo/github-hovercard / getEmoji

Function getEmoji

src/hovercard.js:924–926  ·  view source on GitHub ↗
(unicode)

Source from the content-addressed store, hash-verified

922 }
923
924 function getEmoji(unicode) {
925 return unicode.split('-').map(code => String.fromCodePoint(parseInt(code, 16))).join('')
926 }
927
928 function replaceEmoji(text) {
929 return text.replace(/:([a-z0-9+\-_]+):/gi, (match, key) => {

Callers 1

replaceEmojiFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected