okohll/agileBase — pull request #32 by g1smd (2012-08-14 21:12:53+00:00)
Title: Minor changes and updates to telephone number functionality.

Note about known issue with international numbers with a total of 7 digits or less.

Change 'if' to 'else if' to speed code up.

When a French telephone number is entered as +3 31 77887788, with a gap within the 33 country code, the format is corrected. This doesn't happen when a GB number such as +4 420 55775577 is entered with a gap within the 44 country code. Fixed.

Double slashes for escaping.

Telephone numbers entered with an international access code before the country code required a space after 011 but the space was optional after 00. Changed so that space is optional after both.

Minor RegEx pattern changes.

Use either # or x for extensions.