MCPcopy Index your code
hub / github.com/github/copilot-sdk / ensureTrailingPunctuation

Function ensureTrailingPunctuation

scripts/codegen/csharp.ts:90–94  ·  view source on GitHub ↗

Ensures text ends with sentence-ending punctuation.

(text: string)

Source from the content-addressed store, hash-verified

88
89/** Ensures text ends with sentence-ending punctuation. */
90function ensureTrailingPunctuation(text: string): string {
91 const trimmed = text.trimEnd();
92 if (/[.!?]$/.test(trimmed)) return trimmed;
93 return `${trimmed}.`;
94}
95
96function xmlDocComment(description: string | undefined, indent: string): string[] {
97 if (!description) return [];

Callers 5

xmlDocCommentFunction · 0.85
xmlDocElementFunction · 0.85
xmlDocNamedElementFunction · 0.85
rawXmlDocSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…