diff options
-rw-r--r-- | actionpack/lib/action_view/helpers/number_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/number_helper.rb b/actionpack/lib/action_view/helpers/number_helper.rb index d0019aa07d..f893da9b9d 100644 --- a/actionpack/lib/action_view/helpers/number_helper.rb +++ b/actionpack/lib/action_view/helpers/number_helper.rb @@ -74,7 +74,7 @@ module ActionView # Example: # number_with_delimeter(12345678) => 1,235,678 def number_with_delimeter(number, delimeter=",") - number.gsub(/(\d)(?=(\d\d\d)+(?!\d))/, "\\1#{delimeter}" + number.gsub(/(\d)(?=(\d\d\d)+(?!\d))/, "\\1#{delimeter}") end # Formats a +number+ with a level of +precision+. |