Skip to content

Commit

Permalink
Merge pull request #37826 from schlick/number-to-phone-example-typo
Browse files Browse the repository at this point in the history
Fix minor typo in pattern example for number_to_phone [ci skip]
  • Loading branch information
carlosantoniodasilva committed Nov 28, 2019
2 parents 6e24d16 + 2863619 commit cb17a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionview/lib/action_view/helpers/number_helper.rb
Expand Up @@ -57,7 +57,7 @@ def initialize(number)
#
# 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 = {})
return unless number
Expand Down

0 comments on commit cb17a9f

Please sign in to comment.