mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	lib/yaml/ypath.rb: escape '['.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									304a99ff65
								
							
						
					
					
						commit
						45278aeb76
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -10,7 +10,7 @@ module YAML
 | 
			
		|||
            @segments = []
 | 
			
		||||
            @predicates = []
 | 
			
		||||
            @flags = nil
 | 
			
		||||
            while str =~ /^\/?(\/|[^\/[]+)(?:\[([^\]]+)\])?/
 | 
			
		||||
            while str =~ /^\/?(\/|[^\/\[]+)(?:\[([^\]]+)\])?/
 | 
			
		||||
                @segments.push $1
 | 
			
		||||
                @predicates.push $2
 | 
			
		||||
                str = $'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue