Project

General

Profile

Backport #2943

Updated by jeremyevans0 (Jeremy Evans) almost 5 years ago

=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 
 

Back