Closed Bug 858330 Opened 11 years ago Closed 11 years ago

PhoneNumberJS: Fix chilean mobile numbers

Categories

(Core :: DOM: Device Interfaces, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23
blocking-b2g tef+
Tracking Status
firefox21 --- wontfix
firefox22 --- wontfix
firefox23 --- fixed
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- fixed

People

(Reporter: gwagner, Assigned: gwagner)

Details

Attachments

(1 file)

Merge from upstream: 
https://github.com/andreasgal/PhoneNumber.js/pull/17

This PR is a fix on a parsing bug that happens for Chilean mobile numbers.

The chilean metadata array has a value for nationalPrefixForParsing, but nationalPrefixTransformRule is empty.

When parsing the metadata array, md.nationalPrefixTransformRule is not created (undefined) and then the replace function at line 438 inserts "undefined" at the beginning of the chilean mobile numbers.
Attached patch patchSplinter Review
We can't parse chilean phone numbers.
blocking-b2g: --- → tef?
Attachment #733638 - Flags: review?(gal)
Comment on attachment 733638 [details] [diff] [review]
patch

Review of attachment 733638 [details] [diff] [review]:
-----------------------------------------------------------------

Stealing, r=me.
Attachment #733638 - Flags: review?(gal) → review+
blocking-b2g: tef? → tef+
https://hg.mozilla.org/mozilla-central/rev/1576f07a1d8b
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: