blob: 2857f4b01d6bd10ff4f3362a71b284e1e7395948 (
plain)
1
2
3
4
5
6
|
export const messageIdFromHash = (hash: string) => {
const value = hash.startsWith("#") ? hash.slice(1) : hash
const match = value.match(/^message-(.+)$/)
if (!match) return
return match[1]
}
|