(from: string)
| 363 | } |
| 364 | |
| 365 | function extractDisplayName(from: string): string | null { |
| 366 | const openBracket = from.indexOf('<') |
| 367 | if (openBracket <= 0) return null |
| 368 | const name = from.substring(0, openBracket).trim() |
| 369 | if (!name) return null |
| 370 | if (name.startsWith('"') && name.endsWith('"')) { |
| 371 | return name.slice(1, -1) || null |
| 372 | } |
| 373 | return name |
| 374 | } |
no outgoing calls
no test coverage detected