(value, max = 500)
| 35 | } |
| 36 | |
| 37 | function short(value, max = 500) { |
| 38 | if (value === undefined || value === null) return ""; |
| 39 | const text = typeof value === "string" ? value : JSON.stringify(value); |
| 40 | return text.length > max ? `${text.slice(0, max)}...` : text; |
| 41 | } |
| 42 | |
| 43 | function parseAccount(raw = "") { |
| 44 | const text = String(raw || "").trim(); |
no outgoing calls
no test coverage detected