GHHG10/CodeServer / opencode /packages /app /src /utils /session-title.ts
GHHG10's picture
download
raw
237 Bytes
const pattern = /^(New session|Child session) - \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/
export function sessionTitle(title?: string) {
if (!title) return title
const match = title.match(pattern)
return match?.[1] ?? title
}

Xet Storage Details

Size:
237 Bytes
·
Xet hash:
dfefd1311259f5098ab86e3772a36b67491ffc67556c7a66e3ed4ca394efe7ca

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.