[misc] better regex to catch url. Fixes #1322

This commit is contained in:
Yann Leboulanger 2006-03-05 20:33:54 +00:00
parent d3417371c0
commit 7594b7c0ab
1 changed files with 1 additions and 1 deletions

View File

@ -1324,7 +1324,7 @@ class Interface:
prefix_pattern = prefix_pattern[:-1] # remove last | prefix_pattern = prefix_pattern[:-1] # remove last |
prefix_pattern = '(' + prefix_pattern + ')' prefix_pattern = '(' + prefix_pattern + ')'
links = r'\b' + prefix_pattern + r'\S*[^\s\W]|' links = r'\b' + prefix_pattern + r'\S*[\w\/\=]|'
#2nd one: at_least_one_char@at_least_one_char.at_least_one_char #2nd one: at_least_one_char@at_least_one_char.at_least_one_char
mail = r'\bmailto:\S*[^\s\W]|' r'\b\S+@\S+\.\S*[^\s\W]|' mail = r'\bmailto:\S*[^\s\W]|' r'\b\S+@\S+\.\S*[^\s\W]|'