Project

General

Profile

Actions

Bug #8512

closed

gsub() works incorrect

Added by galnaktar (Oleg K) almost 11 years ago. Updated almost 11 years ago.

Status:
Rejected
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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0