Module:URL: Difference between revisions
Richardpruen (talk | contribs) m 1 revision imported: Template for journal |
imported>Paine Ellsworth per edit request on talk page - update |
||
Line 54: | Line 54: | ||
-- If it's an HTTP[S] URL without the double slash, fix it. | -- If it's an HTTP[S] URL without the double slash, fix it. | ||
url = mw.ustring.gsub(url, '^[Hh][Tt][Tt][Pp]([Ss]?):(/?)([^/])', 'http%1://%3') | url = mw.ustring.gsub(url, '^[Hh][Tt][Tt][Pp]([Ss]?):(/?)([^/])', 'http%1://%3') | ||
local uri = safeUri(url) | local uri = safeUri(url) |