[erlehmann] Fixed regular URL matching expressions for "-".
This commit is contained in:
parent
65ec746e4f
commit
a9877f14dd
1 changed files with 3 additions and 3 deletions
|
@ -2265,10 +2265,10 @@ class Interface:
|
||||||
# NOTE: it's ok to catch www.gr such stuff exist!
|
# NOTE: it's ok to catch www.gr such stuff exist!
|
||||||
|
|
||||||
#FIXME: recognize xmpp: and treat it specially
|
#FIXME: recognize xmpp: and treat it specially
|
||||||
|
links = r"((?<=\()[A-Za-z][A-Za-z0-9\+\.\-]*:"\
|
||||||
|
r"([A-Za-z0-9\.\-_~:/\?#\[\]@!\$&'\(\)\*\+,;=]|%[A-Fa-f0-9]{2})+"\
|
||||||
|
r"(?=\)))|([A-Za-z][A-Za-z0-9\+\.\-]*:([A-Za-z0-9\.\-_~:/\?#\[\]@!\$&'\(\)\*\+,;=]|%[A-Fa-f0-9]{2})+)"
|
||||||
|
|
||||||
links = r"((?<=\()[A-Za-z][A-Za-z0-9+.-]*:"\
|
|
||||||
r"([A-Za-z0-9+\.-_~:/\?#\[\]@!\$&'\(\)\*\+,;=]|%[A-Fa-f0-9]{2})+"\
|
|
||||||
r"(?=\)))|([A-Za-z][A-Za-z0-9+.-]*:([A-Za-z0-9+\.-_~:/\?#\[\]@!\$&'\(\)\*\+,;=]|%[A-Fa-f0-9]{2})+)"
|
|
||||||
#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]'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue