summaryOf

tcmts.cli.releases.summaryOf · #mi6d7t5x · term · runs anywhere

The first sentence of a definition's documentation.

export const summaryOf = (doc: string | undefined) => doc?.split(/\n\s*\n/)[0]!.replace(/\s+/g, " ").replace(/^(.*?[.!?])\s.*$/, "$1").trim() || undefined

used by