Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension option added to normalize_number #176

Merged
merged 5 commits into from
Mar 20, 2018

Conversation

ramaboo
Copy link
Contributor

@ramaboo ramaboo commented Mar 17, 2018

This adds support for PhonyRails.normalize_number('555-123-1234 x44', extension: false) == '+15551231234'

Your gem is a life saver but sometimes I have needed to normalize a number and drop the extension (for example using twilio) and now that's possible. Hopefully others find this change useful.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0007%) to 99.811% when pulling 9a39f46 on ramaboo:option-no-extension into 0001539 on joost:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0007%) to 99.811% when pulling 9a39f46 on ramaboo:option-no-extension into 0001539 on joost:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0007%) to 99.811% when pulling 9a39f46 on ramaboo:option-no-extension into 0001539 on joost:master.

@coveralls
Copy link

coveralls commented Mar 17, 2018

Coverage Status

Coverage increased (+0.0007%) to 99.811% when pulling 34eb21e on ramaboo:option-no-extension into 0001539 on joost:master.

@joost
Copy link
Owner

joost commented Mar 17, 2018

If you fix the rubocop issue (or make it ignore it) I will merge.

@joost joost merged commit 1ef301b into joost:master Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants