marqeta/mqvalidation — pull request #1 by pxpgraphics (2014-09-16 08:00:05+00:00)
Title: Added international phone validations.

Dynamic phone validation & parsing without explicitly setting a country code.

Pretty is what we'll show in the text field.
Trimmed is what we'll save to the API.
isValid is the BOOL we'll use in the delegate methods.

```
2014-09-16 00:48:30.735 MQValidationExample[27324:60b] Phone Pretty: (null)
2014-09-16 00:48:30.736 MQValidationExample[27324:60b] Phone Trimmed: +1
2014-09-16 00:48:30.736 MQValidationExample[27324:60b] Phone isValid NO
2014-09-16 00:48:31.198 MQValidationExample[27324:60b] Phone Pretty: (null)
2014-09-16 00:48:31.199 MQValidationExample[27324:60b] Phone Trimmed: +17
2014-09-16 00:48:31.199 MQValidationExample[27324:60b] Phone isValid NO
2014-09-16 00:48:31.335 MQValidationExample[27324:60b] Phone Pretty: +1 70
2014-09-16 00:48:31.336 MQValidationExample[27324:60b] Phone Trimmed: +170
2014-09-16 00:48:31.336 MQValidationExample[27324:60b] Phone isValid NO
2014-09-16 00:48:31.415 MQValidationExample[27324:60b] Phone Pretty: +1 702
2014-09-16 00:48:31.416 MQValidationExample[27324:60b] Phone Trimmed: +1702
2014-09-16 00:48:31.416 MQValidationExample[27324:60b] Phone isValid NO
2014-09-16 00:48:32.168 MQValidationExample[27324:60b] Phone Pretty: +1 7023
2014-09-16 00:48:32.168 MQValidationExample[27324:60b] Phone Trimmed: +17023
2014-09-16 00:48:32.169 MQValidationExample[27324:60b] Phone isValid NO
2014-09-16 00:48:32.368 MQValidationExample[27324:60b] Phone Pretty: +1 70234
2014-09-16 00:48:32.369 MQValidationExample[27324:60b] Phone Trimmed: +170234
2014-09-16 00:48:32.369 MQValidationExample[27324:60b] Phone isValid NO
2014-09-16 00:48:32.487 MQValidationExample[27324:60b] Phone Pretty: +1 702349
2014-09-16 00:48:32.488 MQValidationExample[27324:60b] Phone Trimmed: +1702349
2014-09-16 00:48:32.488 MQValidationExample[27324:60b] Phone isValid NO
2014-09-16 00:48:32.927 MQValidationExample[27324:60b] Phone Pretty: +1 7023494
2014-09-16 00:48:32.928 MQValidationExample[27324:60b] Phone Trimmed: +17023494
2014-09-16 00:48:32.928 MQValidationExample[27324:60b] Phone isValid NO
2014-09-16 00:48:33.048 MQValidationExample[27324:60b] Phone Pretty: +1 70234949
2014-09-16 00:48:33.049 MQValidationExample[27324:60b] Phone Trimmed: +170234949
2014-09-16 00:48:33.049 MQValidationExample[27324:60b] Phone isValid NO
2014-09-16 00:48:33.263 MQValidationExample[27324:60b] Phone Pretty: +1 702349491
2014-09-16 00:48:33.264 MQValidationExample[27324:60b] Phone Trimmed: +1702349491
2014-09-16 00:48:33.264 MQValidationExample[27324:60b] Phone isValid NO
2014-09-16 00:48:33.382 MQValidationExample[27324:60b] Phone Pretty: +1 702-349-4916
2014-09-16 00:48:33.383 MQValidationExample[27324:60b] Phone Trimmed: +17023494916
2014-09-16 00:48:33.383 MQValidationExample[27324:60b] Phone isValid YES
```