This project is archived and is in readonly mode.
Changeset [4e014379a3c792281138c5a19a5bd74e9435fede] by Erik Ostrom
Revision 4e014379a3c792281138c5a19a5bd74e9435fede,
committed by Erik Ostrom
· August 10th, 2009 @ 07:32 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