Project

General

Profile

This project is closed and read-only.

Actions

Backport #2943

closed

Regexp Hash Code Changes

Backport #2943: Regexp Hash Code Changes

Added by nex3 (Natalie Weizenbaum) over 16 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
[ruby-core:28550]

Description

=begin
When a Regexp containing a sub-section with the case-insensitivity flag set is matched against a string, its hash code changes.

re = /(?i:.)/
p re.hash #=> -452142835
"_" =~ re
p re.hash #=> 21933550
=end

Updated by jeremyevans0 (Jeremy Evans) about 7 years ago Actions #1

  • Tracker changed from Bug to Backport
  • Project changed from 2 to 5
  • Description updated (diff)
  • Status changed from Open to Closed
  • ruby -v deleted (ruby 1.8.7 (2009-04-08 patchlevel 160) [i686-linux])
Actions

Also available in: PDF Atom