wmoxam/phone — pull request #6 by g1smd (2012-08-27 22:11:34+00:00)
Title: Fix GB and other data. Additional GB tests. Fix international_dialing_prefix data. Fix RegEx patterns.

Fix GB area code RegEx. Add additional GB tests. Fix other RegEx patterns and tidy up. Fix corrupted and badly imported international_dialing_prefix data.

Additional tests for GB number ranges and formats not previously tested. Introduces numbers in 4+5, 5+5, 5+4 and 3+6 format. Corrects that 873 is not freefone.

Fix RegEx errors such as unnecessary pipes and commas in other countries. Optimise RegEx pattern character groups in other countries. Add new country for +211.

Fix GB area code RegEx pattern to include additional number types and better restrict matches to valid ranges.

When the international_dialing_prefix data was first imported, it appears to have been done as "integer" instead of "string" as all leading-zero data is missing from every item. Fixing entries that should be "00", and others.

When international_dialing_prefix data was first imported (it looks like from perhaps the wikipedia page listing these codes), many countries are detailed with very old data not the current situation.

Optimise RegEx patterns.