This project is archived and is in readonly mode.
Changeset [7d16e94d827197d030fdd611db4310396aeb0114] by Erik Ostrom
Revision 7d16e94d827197d030fdd611db4310396aeb0114,
committed by Erik Ostrom
· August 10th, 2009 @ 07:30 AM
Correctly handle offsets in Multibyte::Chars#index and #rindex.
The offset in codepoints was being passed directly to the wrapped string's index/rindex method. Now we translate the offset into bytes first.
[#3028 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...
2 changed files
-
M
activesupport/lib/active_support/multibyte/chars.rb -
M
activesupport/test/multibyte_chars_test.rb