GHHG10/CodeServer / opencode /packages /app /src /pages /session /message-id-from-hash.ts
GHHG10's picture
download
raw
200 Bytes
export const messageIdFromHash = (hash: string) => {
const value = hash.startsWith("#") ? hash.slice(1) : hash
const match = value.match(/^message-(.+)$/)
if (!match) return
return match[1]
}

Xet Storage Details

Size:
200 Bytes
·
Xet hash:
f5110c5fa81eb5a6997c91df1094ebd9335cfb7b75af4652c5598a592c5f348d

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