django-cms/djangocms-link

Phone field restrictions

nick-ernie opened this issue · 2 comments

Hello.

Right now plugin have no restriction to the phone field, i think it will be great if phone links content will limited by digits and "+"/"-" chars and whitespaces .

Thanks.

yakky commented

@nick-ernie phone numbers format greatly varies across countries and as such can be quite complicated to come up with a comprehensive validation

@yakky though we could add trimming to the CharField to remove at least the spaces? I could also add some very simple validation so only digits and +/-/() are allowed?