magnolo / newhere

Refugess should find their way around. New Here will help.
http://www.welcomeoida.at
MIT License
4 stars 3 forks source link

Phone Number regex #127

Closed hiasel closed 8 years ago

hiasel commented 8 years ago

Some NGOs have stored phone number in following format: 0043xxxxxxxx our regex pattern currently only allows +43xxxxxxxxx (regex: /^((+\d{1,3}(-| )?(?\d)?(-| )?\d{1,5})|((?\d{2,6})?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/)

Example: In CMS if you want to edit a NGO and the number is stored in 0043 the form is invalid.

mmiheller commented 8 years ago

fixed