Project

General

Profile

Bug #8512

gsub() works incorrect

Added by galnaktar (Oleg K) about 7 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0p195 (2013-05-14) [i386-mingw32]
[ruby-core:55430]

Description

irb(main):005:0> "\".gsub("\", "\\").length
=> 1
irb(main):006:0> "\".gsub("\", "XX").length
=> 2

bug is duplicated with rejected bug #8511

Also available in: Atom PDF