mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* lib/rexml/cdata.rb,lib/rexml/quickpath.rb,lib/rexml/parsers/baseparser.rb:
avoid warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									50e7c1c149
								
							
						
					
					
						commit
						e08f18becd
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		|  | @ -4,7 +4,7 @@ module REXML | |||
| 	class CData < Text | ||||
| 		START = '<![CDATA[' | ||||
| 		STOP = ']]>' | ||||
| 		ILLEGAL = /(]]>)/ | ||||
| 		ILLEGAL = /(\]\]>)/ | ||||
| 
 | ||||
| 		#	Constructor.  CData is data between <![CDATA[ ... ]]> | ||||
| 		# | ||||
|  |  | |||
|  | @ -263,9 +263,9 @@ module REXML | |||
| 							raise REXML::ParseException.new( "error parsing notation: no matching pattern", @source ) | ||||
| 						end | ||||
| 						return [ :notationdecl, md[1], md[2], md[3] ] | ||||
| 					when /^\s*]\s*>/um | ||||
| 					when /^\s*\]\s*>/um | ||||
| 						@document_status = :after_doctype | ||||
| 						@source.match( /^\s*]\s*>/um, true ) | ||||
| 						@source.match( /^\s*\]\s*>/um, true ) | ||||
| 						return [ :end_doctype ] | ||||
| 					end | ||||
| 				end | ||||
|  |  | |||
|  | @ -31,7 +31,7 @@ module REXML | |||
| 				results = filter([element], path) | ||||
| 			when /^\*/u | ||||
| 				results = filter(element.to_a, path) | ||||
| 			when /^[[!\w:]/u | ||||
| 			when /^[\[!\w:]/u | ||||
| 				# match on child | ||||
| 				matches = [] | ||||
| 				children = element.to_a | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 eban
						eban