#18903: Add forms validation for GB telephone numbers. -------------------------------------+------------------------------------- Reporter: g1smd | Owner: nobody Type: New feature | Status: new Component: Forms | Version: 1.4 Severity: Normal | Resolution: Keywords: Telephone Number | Triage Stage: Accepted Forms GB | Needs documentation: 0 Has patch: 1 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 1 Easy pickings: 1 | -------------------------------------+-------------------------------------
Comment (by andrewgodwin): Goodness me, that's one hell of a regular expression. Phone numbers probably need it, though. My main worry is the enforcement of spacing rules - is that really necessary? If there's one thing people get wrong it's where to put the spaces in phone numbers (e.g. 0207 123 4567), and I feel that it's better to strip out the spaces and just do range checks. -- Ticket URL: <https://code.djangoproject.com/ticket/18903#comment:15> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.