geo module: don't fail for lower-case country codes
This commit is contained in:
parent
5d1b204e45
commit
d25d5f9ced
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ Ox.load.Geo = function(options, callback) {
|
|||
|
||||
Ox.getCountryByCode = function(code) {
|
||||
var country;
|
||||
code = code.toUpperCase();
|
||||
Ox.forEach(Ox.COUNTRIES, function(c) {
|
||||
if (c.code == code) {
|
||||
country = c;
|
||||
|
|
Loading…
Reference in a new issue