﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17355	Perform proper NANP validation in US/CA localflavor phone number	Dan McGee	nobody	"Patch attached.

http://en.wikipedia.org/wiki/North_American_Numbering_Plan

Long story short:

1-NPA-NXX-XXXX

* NPA: 3 digits, 1st is [2-9], 2nd/3rd are [0-9]. 2 and 3 cannot both be '1'.
* NXX: 3 digits, 1st is [2-9], 2nd/3rd are [0-9]. 2 and 3 cannot both be '1'.
* XXXX: 4 digits, no restrictions.

Former code allowed any digit in all locations, meaning the following bogus phone numbers (now in tests as invalid) were accepted:

{{{
'023-234-5678'
'123-234-5678'
'323-134-5678'
'312-034-5678'
'311-134-5678'
'312-211-5678'
}}}"	Bug	closed	contrib.localflavor	1.3	Normal	invalid	areacode, nanp, localflavorsplit		Accepted	1	0	0	0	1	0
