diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-07 08:37:26 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-07 08:37:26 +0000 |
commit | 90720a26f60cc8d2efcf496385e1b1a3815933c7 (patch) | |
tree | 35257f04a7c6efe23c94519ebf5362dba0d4ce90 /actionpack/lib | |
parent | 4bdb25da181a8a7acd8956fe53a244224a08be21 (diff) | |
download | rails-90720a26f60cc8d2efcf496385e1b1a3815933c7.tar.gz rails-90720a26f60cc8d2efcf496385e1b1a3815933c7.tar.bz2 rails-90720a26f60cc8d2efcf496385e1b1a3815933c7.zip |
Fixed syntax error
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1112 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-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+. |