MCPcopy Create free account
hub / github.com/Siris2314/NecroAtomicBot / firstUpperCase

Function firstUpperCase

classes/functions.js:130–132  ·  view source on GitHub ↗
(text, split = ' ')

Source from the content-addressed store, hash-verified

128 },
129
130 firstUpperCase(text, split = ' ') {
131 return text.split(split).map(word => `${word.charAt(0).toUpperCase()}${word.slice(1)}`).join(' ');
132 },
133
134 shorten(text, maxLen = 2000) {
135 return text.length > maxLen ? `${text.substr(0, maxLen - 3)}...` : text;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected