diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-08-05 20:44:35 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-08-05 20:44:35 +0000 |
commit | 01e389c965af85901ee8ea77fe099fd3081e07ea (patch) | |
tree | 163695bb33970dd852f185a09a3bed2e073db1d6 /activesupport | |
parent | 5fd2fffcf6fc20e47e16924fd703f281b70e35a9 (diff) | |
download | rails-01e389c965af85901ee8ea77fe099fd3081e07ea.tar.gz rails-01e389c965af85901ee8ea77fe099fd3081e07ea.tar.bz2 rails-01e389c965af85901ee8ea77fe099fd3081e07ea.zip |
Remove unnecessary brackets in regex (closes #5715)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4668 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/inflections.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/inflections.rb b/activesupport/lib/active_support/inflections.rb index 294a65c3ab..ba8a395c06 100644 --- a/activesupport/lib/active_support/inflections.rb +++ b/activesupport/lib/active_support/inflections.rb @@ -36,7 +36,7 @@ Inflector.inflections do |inflect| inflect.singular(/(o)es$/i, '\1') inflect.singular(/(shoe)s$/i, '\1') inflect.singular(/(cris|ax|test)es$/i, '\1is') - inflect.singular(/([octop|vir])i$/i, '\1us') + inflect.singular(/(octop|vir)i$/i, '\1us') inflect.singular(/(alias|status)es$/i, '\1') inflect.singular(/^(ox)en/i, '\1') inflect.singular(/(vert|ind)ices$/i, '\1ex') |