aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflections.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-08-05 20:44:35 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-08-05 20:44:35 +0000
commit01e389c965af85901ee8ea77fe099fd3081e07ea (patch)
tree163695bb33970dd852f185a09a3bed2e073db1d6 /activesupport/lib/active_support/inflections.rb
parent5fd2fffcf6fc20e47e16924fd703f281b70e35a9 (diff)
downloadrails-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/lib/active_support/inflections.rb')
-rw-r--r--activesupport/lib/active_support/inflections.rb2
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')