(aFieldElement: any)
| 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 | } |
no outgoing calls
no test coverage detected