mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-04 01:47:27 +03:00 
			
		
		
		
	Fix markdown regex not supporting [] inside URLs
This commit is contained in:
		
							parent
							
								
									c71d2e18cb
								
							
						
					
					
						commit
						33e908de42
					
				| 
						 | 
					@ -21,7 +21,7 @@ DEFAULT_DELIMITERS = {
 | 
				
			||||||
    '```': MessageEntityPre
 | 
					    '```': MessageEntityPre
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DEFAULT_URL_RE = re.compile(r'\[([^\]]+)\]\((.+?)\)')
 | 
					DEFAULT_URL_RE = re.compile(r'\[([\S\s]+?)\]\((.+?)\)')
 | 
				
			||||||
DEFAULT_URL_FORMAT = '[{0}]({1})'
 | 
					DEFAULT_URL_FORMAT = '[{0}]({1})'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user