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:
Ryuta Kamizono 2021-07-21 09:24:27 +09:00
parent a206aecedf
commit 8dc4e2316c
1 changed files with 2 additions and 2 deletions

View File

@ -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