From 21624119b023f7d215aa23afdfc97220c575a849 Mon Sep 17 00:00:00 2001 From: Fredrik Roubert Date: Wed, 7 Nov 2012 16:00:39 +0000 Subject: [PATCH] JS: Change from getNationalPrefixFormattingRule() to getNationalPrefixFormattingRuleOrDefault(). This should have been done in r519. Review URL: https://codereview.appspot.com/6822092 --- javascript/i18n/phonenumbers/asyoutypeformatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/i18n/phonenumbers/asyoutypeformatter.js b/javascript/i18n/phonenumbers/asyoutypeformatter.js index 53b235e60..4ee983b80 100644 --- a/javascript/i18n/phonenumbers/asyoutypeformatter.js +++ b/javascript/i18n/phonenumbers/asyoutypeformatter.js @@ -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); }