Skip to content

Commit ab78c20

Browse files
committed
Merge branch 'release-1.0.4'
2 parents 23f9a0f + efa15df commit ab78c20

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project is an ISO 3166 (Country codes) module for AngularJS. It provides:
1111
This library is available with the bower package manager, you can either:
1212

1313
* Execute the following command: `bower install iso-3166-country-codes-angular --save`
14-
* Add this line in your dependencies: `"iso-3166-country-codes-angular": "1.0.2"`
14+
* Add this line in your dependencies: `"iso-3166-country-codes-angular": "1.0.3"`
1515

1616
## Features
1717

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iso-3166-country-codes-angular",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"main": "dist/iso-3166-country-codes-angular.min.js",
55
"ignore": [
66
"**/.*",

dist/iso-3166-country-codes-angular.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iso-3166-country-codes-angular",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "An AngularJS module to work with Country Codes",
55
"repository": {
66
"type": "git",

src/iso-3166-country-codes-angular.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,16 @@ angular.module('iso-3166-country-codes', [])
257257
};
258258

259259
holder.isCountryCode = function(input) {
260+
if (angular.isString(input)) {
261+
input = input.toUpperCase();
262+
}
260263
return angular.isDefined(this.codeToCountry[input]);
261264
};
262265

263266
holder.getCountryName = function(countryCode) {
267+
if (angular.isString(countryCode)) {
268+
countryCode = countryCode.toUpperCase();
269+
}
264270
return this.codeToCountry[countryCode];
265271
};
266272

0 commit comments

Comments
 (0)