CA/US phones are not setup properly
thekevinday - August 31, 2009 - 14:41
| Project: | Phone (CCK) |
| Version: | 6.x-2.9 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Description
The phone.ca.inc code does not work as is.
Looking at the file, it seems that the regex was setup as an example, but is not properly commented.
For example, the second line of the regex has:
^\D* # ignore non-digits
Which means that the pound-sign and the text after it would all have to be part of the phone number!
I suspect this is an oversight, I have provided a patch that fixes the regex so that it works.
| Attachment | Size |
|---|---|
| phone-ca_fix-1.patch | 3.32 KB |
