Modul:UrlCheck: Unterschied zwischen den Versionen
// ergänzt
(Zeichenketten ausgelagert) |
(// ergänzt) |
||
| Zeile 37: | Zeile 37: | ||
-- protocol | -- protocol | ||
s, count = s:gsub( '^https?://', '' ) | s, count = s:gsub( '^https?://', '' ) | ||
if count == 0 then | |||
s, count = s:gsub( '^//', '' ) | |||
end | |||
if count == 0 then -- missing or wrong protocol | if count == 0 then -- missing or wrong protocol | ||
return 6 | return 6 | ||