MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isEmptyMessageText

Function isEmptyMessageText

source code/utils/messages.ts:2755–2759  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

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

Callers 3

UserMessageOptionFunction · 0.85
isNavigableMessageFunction · 0.85
AssistantTextMessageFunction · 0.85

Calls 1

stripPromptXMLTagsFunction · 0.85

Tested by

no test coverage detected