Active
Project:
Phone
Version:
5.x-2.11
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2008 at 19:41 UTC
Updated:
14 Aug 2012 at 11:10 UTC
If the first character entered in a Phone field is a zero, and the entire input has at least the required number of digits, it passes validation with no error messages and the string "() -" is stored in the field. This happens even when the field is Required.
Examples:
100-000-0000 is not accepted, but 011-111-1111 is accepted
000-000-000 is not accepted, but 000-000-0000 is accepted, as well as 000-000-0000123456789
111111111111111111111111 is not accepted, but 0111111111111111111111111 is accepted
I observed this behavior using the North American phone field.
Comments
Comment #1
g1smd commentedI notice that start and end anchoring is missing from some of the RegEx patterns for various countries.
This leads to ambiguous pattern matching and erroneous operation for some numbers.