mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Replace to_a[1..-1] on a MatchData with captures
				
					
				
			git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									da665b0234
								
							
						
					
					
						commit
						d83f9745f5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -57,7 +57,7 @@ class IO | |||
|         STDOUT.flush | ||||
|       end | ||||
|       if mat=e_pat.match(buf) then | ||||
|         result = [buf,*mat.to_a[1..-1]] | ||||
|         result = [buf,*mat.captures] | ||||
|         break | ||||
|       end | ||||
|     end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 knu
						knu