Project

General

Profile

Backport #2943

Regexp Hash Code Changes

Added by nex3 (Natalie Weizenbaum) over 9 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
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

History

#1

Updated by jeremyevans0 (Jeremy Evans) 4 months ago

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

Also available in: Atom PDF