Fix bug from capitals in 'https://'

This commit is contained in:
tanner committed 2023-04-29 19:38:05 +00:00
1 parent 7943e291fb
commit 61225ebd20
3 files changed
+4264 -1

No files matched your search

+2143
View File
File diff suppressed because it is too large. Load diff
+2120
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -52,7 +52,7 @@ async def new_message(event):
if website:
prefixes = ['http://', 'https://', 'gemini://', 'gopher://']
for prefix in prefixes:
if website.startswith(prefix):
if website.lower().startswith(prefix):
break
else: # for loop
website = 'http://' + website