MCPcopy Create free account
hub / github.com/anomalyco/models.dev / ensureSentence

Function ensureSentence

packages/web/src/render.tsx:591–593  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

589}
590
591function ensureSentence(value: string) {
592 return /[.!?]$/.test(value) ? value : `${value}.`;
593}
594
595function sentenceList(values: Array<string | undefined>) {
596 const parts = values.filter((value): value is string => Boolean(value));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected