From d25d5f9cedf244024e1f17fedecbe2dadb51594b Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Mon, 26 Mar 2012 09:58:42 +0000 Subject: [PATCH] geo module: don't fail for lower-case country codes --- source/Ox.Geo/Ox.Geo.js | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Ox.Geo/Ox.Geo.js b/source/Ox.Geo/Ox.Geo.js index 61279318..ac9c3520 100644 --- a/source/Ox.Geo/Ox.Geo.js +++ b/source/Ox.Geo/Ox.Geo.js @@ -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;