Skip to content

Commit

Permalink
Update libphonenumber@8.13.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ruimarinho committed Jan 25, 2023
1 parent 8acf2b5 commit 8967f87
Show file tree
Hide file tree
Showing 6 changed files with 455 additions and 489 deletions.
393 changes: 197 additions & 196 deletions src/demo-compiled.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions src/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,16 @@ function phoneNumberParser() {
output.append(
phoneUtil_.formatNationalNumberWithCarrierCode(number, carrierCode));
}
output.append('\nFormat for mobile dialing (calling from US): ');
output.append(
isNumberValid ?
phoneUtil_.formatNumberForMobileDialing(number, 'US', true) :
'invalid');
output.append('\nFormat for national dialing with preferred carrier code and empty fallback carrier code: ');
output.append(
isNumberValid ?
phoneUtil_.formatNationalNumberWithPreferredCarrierCode(number, '') :
'invalid');
output.append('\n\n****AsYouTypeFormatter Results****');
var formatter = new i18n.phonenumbers.AsYouTypeFormatter(regionCode);
var phoneNumberLength = phoneNumber.length;
Expand Down
232 changes: 119 additions & 113 deletions src/metadata.js

Large diffs are not rendered by default.

Loading

0 comments on commit 8967f87

Please # to comment.