MCPcopy Create free account
hub / github.com/ConnectAI-E/TalkBase / abstractDescription

Method abstractDescription

utils/BaseSchema/tableParser.ts:120–133  ·  view source on GitHub ↗
(aFieldElement: any)

Source from the content-addressed store, hash-verified

118 }
119
120 abstractDescription(aFieldElement: any) {
121 const description = aFieldElement.description;
122 if (!description) {
123 return '';
124 }
125 const content = description.content;
126 if (!content) {
127 return '';
128 }
129
130 const text = content.map((c: any) => c.text).join('');
131 // 替换换行符为空格
132 return text.replace(/\n/g, ' ');
133 }
134}

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected