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

Function getFirstMeaningfulLine

scripts/commit-msg-lint.js:80–90  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

78}
79
80function getFirstMeaningfulLine(content) {
81 const lines = content.split(/\r?\n/);
82 for (const line of lines) {
83 const trimmed = line.trim();
84 if (!trimmed || trimmed.startsWith('#')) {
85 continue;
86 }
87 return trimmed;
88 }
89 return '';
90}
91
92function isEmojiToken(token) {
93 const key = token.startsWith(':')

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected