MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / isEmptyMessageText

Function isEmptyMessageText

restored-src/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 2

stripPromptXMLTagsFunction · 0.85
trimMethod · 0.45

Tested by

no test coverage detected