MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / countryName

Function countryName

freebuff/web/src/app/live/live-stats-client.ts:17–23  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

15}
16
17export function countryName(code: string): string {
18 if (code === 'UNKNOWN') {
19 return 'Unknown'
20 }
21
22 return /^[A-Z]{2}$/.test(code) ? (REGION_NAMES.of(code) ?? code) : code
23}
24
25export function useLiveStats(
26 initialStats: FreebuffLiveStats,

Callers 3

HomepageLiveStatsFunction · 0.90
WorldMapFunction · 0.90
CountryListFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected