diff --git a/main.py b/main.py index f992473..d785d7c 100644 --- a/main.py +++ b/main.py @@ -104,7 +104,7 @@ def add_link(): if not (url.startswith('http://') or url.startswith('https://')): url = 'https://' + url - regexmatch = re.match(r"^https?://([a-z0-9]+(-[a-z0-9]+)*\.)*([a-z0-9]+(-[a-z0-9]+)*)(/([a-z0-9.])+(-([a-z0-9.])+)?)*$", domain) + regexmatch = re.match(r"^https?://([a-z0-9]+(-[a-z0-9]+)*\.)*([a-z0-9]+(-[a-z0-9]+)*)(/([a-z0-9.])+(-([a-z0-9.])+)?)*$", url) if not regexmatch: return error('Invalid domain')