We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cc734b commit 95ef484Copy full SHA for 95ef484
1 file changed
cmd/tcg/data.go
@@ -53,5 +53,8 @@ func countryFlag(isoCode string) string {
53
if len(code) != 2 {
54
return ""
55
}
56
+ if code[0] < 'A' || code[0] > 'Z' || code[1] < 'A' || code[1] > 'Z' {
57
+ return ""
58
+ }
59
return string(rune(0x1F1E6+(rune(code[0])-'A'))) + string(rune(0x1F1E6+(rune(code[1])-'A')))
60
0 commit comments