MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / isImageOnlyMessage

Function isImageOnlyMessage

packages/core/src/merger/algorithms.ts:111–114  ·  view source on GitHub ↗
(content: string | undefined | null)

Source from the content-addressed store, hash-verified

109}
110
111function isImageOnlyMessage(content: string | undefined | null): boolean {
112 if (!content) return false
113 return /^\[图片:\s*.+\]$/.test(content.trim())
114}
115
116// ==================== Conflict detection ====================
117

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected