(s)
| 13 | function die(msg, code = 1) { console.error(msg); process.exit(code) } |
| 14 | |
| 15 | function normalizeName(s) { |
| 16 | return (s || "") |
| 17 | .normalize("NFKD") |
| 18 | .replace(/\p{Diacritic}/gu, "") |
| 19 | .replace(/\s+/g, " ") |
| 20 | .trim() |
| 21 | .toLowerCase(); |
| 22 | } |
| 23 | function pickBetterName(current, candidate) { |
| 24 | if (!current) return (candidate || "").trim(); |
| 25 | const c = current.trim(); |
no outgoing calls
no test coverage detected