Module:Delink: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
better prefix test |
add "//" url prefix |
||
Line 8: | Line 8: | ||
-- Check if the text has a valid URL prefix and at least one valid URL character. |
-- Check if the text has a valid URL prefix and at least one valid URL character. |
||
local valid_url_prefixes = {"http://", "https://", "ftp://", "gopher://", "mailto:", "news:", "irc://"} |
local valid_url_prefixes = {"//", "http://", "https://", "ftp://", "gopher://", "mailto:", "news:", "irc://"} |
||
local url_prefix |
local url_prefix |
||
for i,v in ipairs(valid_url_prefixes) do |
for i,v in ipairs(valid_url_prefixes) do |