1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-09-05 11:06:23 -07:00

Fix link checker plugin to allow URLs with subdomains

This commit is contained in:
Eggbertx 2024-12-10 16:38:57 -08:00
parent f6338cd6f1
commit a48878bdfd

View file

@ -43,7 +43,7 @@ events.register_event({"message-pre-format"}, function(tr, post, req)
return
end
for tld in string.gmatch(post.MessageRaw, "%a+://%w+.(%w+)") do
for tld in string.gmatch(post.MessageRaw, "%a+://(%w+.)+(%w+)") do
found = false
for _, recognized in pairs(recognized_tlds) do
if(tld == recognized) then