Project

General

Profile

Actions

Bug #4359

closed

regular expressions created with Regexp::FIXEDENCODING have incorrect inspect

Bug #4359: regular expressions created with Regexp::FIXEDENCODING have incorrect inspect

Added by tenderlovemaking (Aaron Patterson) over 14 years ago. Updated over 14 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.5.0]
Backport:
[ruby-core:35055]

Description

=begin
irb(main):001:0> x = //
=> //
irb(main):002:0> y = Regexp.new('', Regexp::FIXEDENCODING)
=> //
irb(main):003:0> [x.inspect, y.inspect]
=> ["//", "//"]
irb(main):004:0> [x.options, y.options]
=> [0, 16]
irb(main):005:0>
=end

Actions

Also available in: PDF Atom