1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

resistance is futile

This commit is contained in:
Xavier Noria 2013-01-21 17:44:48 +01:00
parent bde96533b6
commit 4e32722594

View file

@ -135,7 +135,7 @@ module ActiveSupport
p0 = plural[0]
prest = plural[1..-1]
if singular[0,1].upcase == p0.upcase
if s0.upcase == p0.upcase
plural(/(#{s0})#{srest}$/i, '\1' + prest)
plural(/(#{p0})#{prest}$/i, '\1' + prest)