Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

PullRequestTimeline.logic.ts

5 lines213 Bytes

1import { splitsSurrogatePair } from "@t3tools/shared/assistantCitations";
2​
3export function collapsedTimelineCommentMarkdown(body: string) {
4 return body.slice(0, splitsSurrogatePair(body, 1200) ? 1199 : 1200);
5}