fix: Typo in regex
All checks were successful
Build Docker / Build Main Image (push) Successful in 32s
All checks were successful
Build Docker / Build Main Image (push) Successful in 32s
This commit is contained in:
parent
2292b912d2
commit
994ca7e1e7
2
main.py
2
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.])+)?)*$", domain)
|
||||
if not regexmatch:
|
||||
return error('Invalid domain')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user