Skip to content

Commit

Permalink
Handle global region.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorwagner committed Mar 5, 2015
1 parent eea7719 commit 4c0b8b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhoneNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ var PhoneNumber = (function (dataBase) {
// Remove formating characters and whitespace.
number = PhoneNumberNormalizer.Normalize(number);

//@e can't parse international access codes f there is no defaultRegion
// We can't parse international access codes f there is no defaultRegion
// or the defaultRegion is the global region.
if ((!defaultRegion || defaultRegion === '001') && number[0] !== '+')
return null;
Expand Down

0 comments on commit 4c0b8b5

Please sign in to comment.