PhilanthropyDataCommons / service

A project for collecting and serving public information associated with grant applications
GNU Affero General Public License v3.0
8 stars 2 forks source link

Add library for phone number validation #874

Closed hminsky2002 closed 5 months ago

hminsky2002 commented 5 months ago

Related to Issue #760

The current implementation of phone number validation for proposal field values(src/fieldValidation.ts) uses a regex which is fundamentally limited. It should be refactored to use an appropriate validation library, such as https://www.npmjs.com/package/phone, (or maybe there is an ajv utility for it).