(name: string)
| 33 | } |
| 34 | |
| 35 | export function generateNameAbbr(name: string): string { |
| 36 | const firstCharRegex = /[\p{L}]/u; |
| 37 | |
| 38 | const match = name.match(firstCharRegex); |
| 39 | |
| 40 | return match ? match[0].toUpperCase() : ""; |
| 41 | } |
| 42 | |
| 43 | const countryDisplayNames = |
| 44 | typeof Intl !== "undefined" && typeof Intl.DisplayNames !== "undefined" |
nothing calls this directly
no outgoing calls
no test coverage detected