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:
parent
f6338cd6f1
commit
a48878bdfd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue