Port over URL pattern changes from
@@ -36,11 +36,11 @@ URL_PATTERN = (
r"(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))"
r"|"
# host name
- r"(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)"
+ r"(?:(?:[a-z0-9\-]*)?[a-z0-9]+)"
# domain name
- r"(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*"
+ r"(?:\.(?:[a-z0-9\-])*[a-z0-9]+)*"
# TLD identifier
- r"(?:\.(?:[a-z\u00a1-\uffff]{2,}))"
+ r"(?:\.(?:[a-z]{2,}))"
r")"
# port number
r"(?::\d{2,5})?"
