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