diff options
author | प्रथमेश Sonpatki <csonpatki@gmail.com> | 2017-01-31 16:54:46 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-31 16:54:46 +0530 |
commit | af05f272914b3c33ae69b76ffd67897e96c60c48 (patch) | |
tree | 02db175734cc7af01f1a39c0f982981e787bbbba /activesupport | |
parent | 505463c859927408665ce141426f098fea303a4e (diff) | |
parent | 20435f35474658cf0b1eb9d2fafceb733b8944b7 (diff) | |
download | rails-af05f272914b3c33ae69b76ffd67897e96c60c48.tar.gz rails-af05f272914b3c33ae69b76ffd67897e96c60c48.tar.bz2 rails-af05f272914b3c33ae69b76ffd67897e96c60c48.zip |
Merge pull request #27856 from kenta-s/remove-redundant-right-parentheses
Remove redundant right parentheses in number_helper [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/number_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/number_helper.rb b/activesupport/lib/active_support/number_helper.rb index da4e91e949..880340ca86 100644 --- a/activesupport/lib/active_support/number_helper.rb +++ b/activesupport/lib/active_support/number_helper.rb @@ -45,7 +45,7 @@ module ActiveSupport # # number_to_phone(75561234567, pattern: /(\d{1,4})(\d{4})(\d{4})$/, area_code: true) # # => "(755) 6123-4567" - # number_to_phone(13312345678, pattern: /(\d{3})(\d{4})(\d{4})$/)) + # number_to_phone(13312345678, pattern: /(\d{3})(\d{4})(\d{4})$/) # # => "133-1234-5678" def number_to_phone(number, options = {}) NumberToPhoneConverter.convert(number, options) |