Ticket #107 (enhancement)
Opened 2 years ago
Last modified 2 years ago
UK Phone Formatting
Status: closed (fixed)
| Reported by: | anonymous | Assigned to: | brieb |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.8 |
| Component: | phpbms | Version: | 0.7 |
| Keywords: | UK Phone Formatting | Cc: | |
Regex for UK Phone formatting.
Possibly will not support a few older style numbers, may need reworked for 10 digits. That said, i've not seen a 10 digit number advertised in a long time so should be ok as is.
((\(?0\d{4}\)?\s?\d{3}\s?\d{3})|(\(?0\d{3}\)?\s?\d{3}\s?\d{4})|(\(?0\d{2}\)?\s?\d{4}\s?\d{4}))(\s?\#(\d{4}|\d{3}))?$
Sorry guys, no idea how to create a .diff file.
Attachments
Change History
04/06/07 15:29:07: Modified by anonymous
- attachment ukphoneformat.patch added.
04/06/07 15:59:11: Modified by Andi Martin <phpbms@wavenorth.co.uk>
ok, found the error message, it's line 192 in clients_addedit.php, however, it doesn't seem to have been built to accomodate the multiple format options. The easiest way would obviously be to remove:
<br \/><em>(example: 505-994-6388)<\/em>
Don't think my php is quite good enough to do any better than that i'm afraid!
04/06/07 16:18:32: Modified by brieb
- status changed from new to closed.
- resolution set to fixed.
- milestone changed from unknown to 0.8.
Implemented by #107
Ammended JSTransport and AdminSettings? file to enable UK phone formatting... NB error message still gives american notation when incorrect number entered.