add magnet: catching, and add a fixme for special treatment of uncatched xmpp:
This commit is contained in:
		
							parent
							
								
									be3cc4504b
								
							
						
					
					
						commit
						75a2418fea
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1067,9 +1067,11 @@ class Interface:
 | 
			
		|||
		# so http://be) will match http://be and http://be)be) will match http://be)be
 | 
			
		||||
 | 
			
		||||
		prefixes = (r'http://', r'https://', r'news://', r'ftp://', r'ed2k://',
 | 
			
		||||
			r'www\.', r'ftp\.')
 | 
			
		||||
			r'magnet:', r', r'www\.', r'ftp\.')
 | 
			
		||||
		# NOTE: it's ok to catch www.gr such stuff exist!
 | 
			
		||||
		
 | 
			
		||||
		#FIXME: recognize xmpp: and treat it specially
 | 
			
		||||
		
 | 
			
		||||
		prefix_pattern = ''
 | 
			
		||||
		for prefix in prefixes:
 | 
			
		||||
			prefix_pattern += prefix + '|'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue