mirror of https://github.com/rails/rails
Fix referencing a capture in a string [ci skip]
```irb irb(main):001:0> '\1en' => "\\1en" irb(main):002:0> "\1en" => "\u0001en" irb(main):003:0> "\\1en" => "\\1en" ```
This commit is contained in:
parent
a206aecedf
commit
8dc4e2316c
|
@ -4,8 +4,8 @@
|
|||
# are locale specific, and you may define rules for as many different
|
||||
# locales as you wish. All of these examples are active by default:
|
||||
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
||||
# inflect.plural /^(ox)$/i, "\1en"
|
||||
# inflect.singular /^(ox)en/i, "\1"
|
||||
# inflect.plural /^(ox)$/i, "\\1en"
|
||||
# inflect.singular /^(ox)en/i, "\\1"
|
||||
# inflect.irregular "person", "people"
|
||||
# inflect.uncountable %w( fish sheep )
|
||||
# end
|
||||
|
|
Loading…
Reference in New Issue