MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / stripFieldLabel

Function stripFieldLabel

src/utils/logEmbeds.js:7–9  ·  view source on GitHub ↗
(name = '')

Source from the content-addressed store, hash-verified

5const EMOJI_PREFIX = /^[\p{Extended_Pictographic}\uFE0F\s]+/u;
6
7export function stripFieldLabel(name = '') {
8 return name.replace(EMOJI_PREFIX, '').trim() || name;
9}
10
11export function formatLogLine(label, value) {
12 return `**${label}:** ${value}`;

Callers 2

fieldsToLinesFunction · 0.85
splitComparisonFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected