Project

General

Profile

Backport #8001

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

=begin 
  for (({for ruby in ~/.rbenv/versions/{1.9.3-p327,2.0.0-p0}/bin/ruby 
  
 do 
    
   "$ruby" -v 
    
   "$ruby" -e 'p /x.*?\Z$/ =~ "x\ny"' 
  
 done 
 })) 

 :In In Ruby 1.9: (({nil})) nil 
 :In In Ruby 2.0: (({0})) 0 

 If you remove the "y" from the string, or add more, then they do the same thing. 
 The temporary solution I'm using to get around this is to replace `(({\Z}))` `\Z` with `(({\n\z}))` 
 =end `\n\z` 

Back