MCPcopy
hub / github.com/codeaashu/claude-code / isEmptyMessageText

Function isEmptyMessageText

src/utils/messages.ts:2753–2757  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

2751}
2752
2753export function isEmptyMessageText(text: string): boolean {
2754 return (
2755 stripPromptXMLTags(text).trim() === '' || text.trim() === NO_CONTENT_MESSAGE
2756 )
2757}
2758const STRIPPED_TAGS_RE =
2759 /<(commit_analysis|context|function_analysis|pr_analysis)>.*?<\/\1>\n?/gs
2760

Callers 3

UserMessageOptionFunction · 0.85
isNavigableMessageFunction · 0.85
AssistantTextMessageFunction · 0.85

Calls 1

stripPromptXMLTagsFunction · 0.85

Tested by

no test coverage detected