(content)
| 78 | } |
| 79 | |
| 80 | function 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 | |
| 92 | function isEmojiToken(token) { |
| 93 | const key = token.startsWith(':') |