1
1
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:
Louis Grenard 2019-02-20 17:13:00 +08:00 committed by GitHub
commit b1be36ba48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"""