Project

General

Profile

Actions

Bug #6415

closed

wrong documentation for Regex#==/eql?

Added by john_firebaugh (John Firebaugh) over 12 years ago. Updated over 12 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
Backport:
[ruby-core:44955]

Description

The documentation states that "Two regexps are equal if their patterns are identical, they have the same character set code, and their casefold? values are the same" and gives the following example:

/abc/  == /abc/n   #=> false

In fact, this returns true -- the /n character set code option is a special case.

Updated by drbrain (Eric Hodel) over 12 years ago

  • Status changed from Open to Assigned
  • Assignee set to drbrain (Eric Hodel)
Actions #2

Updated by drbrain (Eric Hodel) over 12 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r35600.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • re.c (rb_reg_equal): Removed incorrect example for Regexp#== with
    "n" option. [ruby-talk - Bug #6415]
Actions

Also available in: Atom PDF

Like0
Like0Like0