MCPcopy Create free account
hub / github.com/continuedev/continue / capitalizeFirstLetter

Function capitalizeFirstLetter

core/util/text.ts:1–6  ·  view source on GitHub ↗
(val: string)

Source from the content-addressed store, hash-verified

1export const capitalizeFirstLetter = (val: string) => {
2 if (val.length === 0) {
3 return "";
4 }
5 return val[0].toUpperCase() + val.slice(1);
6};
7
8export function replaceEscapedCharacters(str: string): string {
9 return str.replaceAll(/\\(n|t|r|\\|"|')/g, (match, p1) => {

Callers 1

text.vitest.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected