మాడ్యూల్:URL: కూర్పుల మధ్య తేడాలు

Content deleted Content added
imported>Toohool
fix for omitted URL parameter
imported>Toohool
preserve case in a query string or anchor without a path
పంక్తి 39:
if text == '' then
local comps = split(url, '/')
local host = comps[3]:lower()
local path = table.concat(rest(comps, 4), '/')
 
local idx = host:find('?') or host:find('#') -- if there's a query string or anchor directly after the host name, without the default path ("/") in between, its case should be preserved
if idx == nil then
host = host:lower()
else
host = host:sub(1, idx - 1):lower() .. host:sub(idx)
end
text = host
if path ~= '' then
"https://te.wikipedia.org/wiki/మాడ్యూల్:URL" నుండి వెలికితీశారు