This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
libphonenumber
mirror of
https://github.com/google/libphonenumber
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
254
Wiki
Activity
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
2fb7228c19
commit
0fbfa7e960
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
.
getCountryCode
OrDefault
(
)
;
}
;
Write
Preview
Loading…
Cancel
Save