General

Profile

Oleg K

Issues

Activity

06/11/2013

10:15 PM Ruby trunk Bug #8512: gsub() works incorrect
Hanmac (Hans Mackowiak) wrote:
> =begin
>
> the docs says:
>
> ((*If replacement is a String it will be substi...
06:30 PM Ruby trunk Bug #8512 (Rejected): gsub() works incorrect
irb(main):005:0> "\\".gsub("\\", "\\\\").length
=> 1
irb(main):006:0> "\\".gsub("\\", "XX").length
=> 2
bug ...
05:33 PM Ruby trunk Bug #8511: gsub("\\","\\\\") works incorrect
Should I open new bug?
05:24 PM Ruby trunk Bug #8511: gsub("\\","\\\\") works incorrect
nobu (Nobuyoshi Nakada) wrote:
> I'm not sure what you expect, it works as expected.
irb(main):005:0> "\\".gsub("...
04:34 PM Ruby trunk Bug #8511 (Rejected): gsub("\\","\\\\") works incorrect
DL is deprecated, please use Fiddle
irb(main):001:0> a = "\\"
=> "\\"
irb(main):002:0> a.gsub("\\", "\\\\")
=> "\...

Also available in: Atom