Browse Source

JS: Change from getNationalPrefixFormattingRule() to getNationalPrefixFormattingRuleOrDefault(). This should have been done in r519.

Review URL: https://codereview.appspot.com/6822092
pull/567/head
Fredrik Roubert 13 years ago
committed by Mihaela Rosca
parent
commit
21624119b0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      javascript/i18n/phonenumbers/asyoutypeformatter.js

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

@ -364,7 +364,7 @@ i18n.phonenumbers.AsYouTypeFormatter.prototype.getAvailableFormats_ =
if (!nationalPrefixIsUsedByCountry || this.isCompleteNumber_ ||
format.getNationalPrefixOptionalWhenFormatting() ||
this.phoneUtil_.formattingRuleHasFirstGroupOnly(
format.getNationalPrefixFormattingRule())) {
format.getNationalPrefixFormattingRuleOrDefault())) {
if (this.isFormatEligible_(format.getFormatOrDefault())) {
this.possibleFormats_.push(format);
}


Loading…
Cancel
Save