Project

General

Profile

Actions

Bug #3224

closed

Regexp.new("...", nil, "n") is not documented

Added by marcandre (Marc-Andre Lafortune) over 14 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2010-04-30 trunk 27554) [x86_64-darwin10.3.0]
Backport:
[ruby-core:29893]

Description

=begin
While fixing the error messages for the number of parameters ( r27558 ), I noticed that Regexp.new accepts a third undocumented parameter.

Is it supported? If so it should be documented.

I also note that test_regexp.rb tests for the third parameter being "u", even though this has no effect. Maybe these tests should be removed?
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0