collab
collab copied to clipboard
Phone number parsing is overly simplistic
https://github.com/cfpb/collab/blob/master/core/helpers.py#L34
Phone number parsing assumes the phone number is digits only, with no spaces, dashes, or periods. This would be find if the phone number was cleansed when created, but this is not the case.
Either:
- Ensure the phone number is cleansed when saved
- Have a phone number formatted that is more flexible