(value, max = 500)
| 45 | } |
| 46 | |
| 47 | function short(value, max = 500) { |
| 48 | if (value === undefined || value === null) return ""; |
| 49 | const text = typeof value === "string" ? value : JSON.stringify(value); |
| 50 | return text.length > max ? `${text.slice(0, max)}...` : text; |
| 51 | } |
| 52 | |
| 53 | function parseAccount(raw = "") { |
| 54 | const text = String(raw || "").trim(); |
no outgoing calls
no test coverage detected