mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-25 01:31:47 +03:00
fix(package/checker): isitdown module fails with capital letters in URL
This commit is contained in:
commit
b1be36ba48
@ -66,7 +66,7 @@ def output(type, code, speech = ''):
|
||||
def finddomains(string):
|
||||
"""Find a domain name substring from a string"""
|
||||
|
||||
return findall('[a-z0-9\-]{,63}\.[a-z0-9\-\.]{2,191}', string)
|
||||
return findall('[a-z0-9\-]{,63}\.[a-z0-9\-\.]{2,191}', string.lower())
|
||||
|
||||
def http(method, url):
|
||||
"""Send HTTP request with the Leon user agent"""
|
||||
|
Loading…
Reference in New Issue
Block a user