Browse Source

JS: Change back from getCountryCode() to getCountryCodeOrDefault().

That change should not have been part of r538.
Review URL: https://codereview.appspot.com/6822087
pull/567/head
Fredrik Roubert 13 years ago
committed by Mihaela Rosca
parent
commit
0fbfa7e960
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      javascript/i18n/phonenumbers/phonenumberutil.js

+ 1
- 1
javascript/i18n/phonenumbers/phonenumberutil.js View File

@ -2861,7 +2861,7 @@ i18n.phonenumbers.PhoneNumberUtil.prototype.getCountryCodeForValidRegion_ =
if (metadata == null) {
throw 'Invalid region code: ' + regionCode;
}
return metadata.getCountryCode();
return metadata.getCountryCodeOrDefault();
};


Loading…
Cancel
Save