MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / isEmojiToken

Function isEmojiToken

scripts/commit-msg-lint.js:92–97  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

90}
91
92function isEmojiToken(token) {
93 const key = token.startsWith(':')
94 ? token.toLowerCase()
95 : token.replace(/\uFE0F/g, '');
96 return TOKEN_TO_TYPES.has(key);
97}
98
99function validateEmojiToken(emojiToken) {
100 const key = emojiToken.startsWith(':')

Callers 1

validateCommitHeaderFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected