mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Minor parse problem if hyperlink text starts \w+:...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									f461a6b8e5
								
							
						
					
					
						commit
						30f3576610
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -155,7 +155,7 @@ module Generators
 | 
			
		|||
 | 
			
		||||
        "<img src=\"#{url}\">"
 | 
			
		||||
      else
 | 
			
		||||
        "<a href=\"#{url}\">#{text.sub(%r{^\w+:/*}, '')}</a>"
 | 
			
		||||
        "<a href=\"#{url}\">#{text.sub(%r{^#{type}:/*}, '')}</a>"
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue