enriquez/ECPhoneNumberFormatter — pull request #10 by dfmuir (2014-09-16 18:47:32+00:00)
Title: Modified the formatting behavior to be less aggressive on input strings that begin with 1.

Modified the formatting behavior to be less aggressive on input strings that begin with "1". Previously, the formatter would insert the parenthesis around the area code once the string beginning with "1" had a length of 2. Now, the parenthesis are inserted around the area code only once the length of the string beginning with "1" is 5. Additionally, this commit modifies the tests project to accept this behavior. All other unrelated tests pass.

This causes better behavior when formatting phone number strings as they are typed. If you set up a UITextField to format the number after each time the string changes. It becomes impossible to delete the string "1 (234)" because the formatter will reinsert the deleted ')'. See the example below.

![before](https://cloud.githubusercontent.com/assets/1464005/4292889/3e8356b6-3dd1-11e4-88eb-b611ef673ef8.gif) ____ ![after](https://cloud.githubusercontent.com/assets/1464005/4292891/42776f64-3dd1-11e4-993a-99d5d88d910e.gif)