Modul:UrlCheck: Unterschied zwischen den Versionen
K
keine Bearbeitungszusammenfassung
(code check) |
KKeine Bearbeitungszusammenfassung |
||
| Zeile 2: | Zeile 2: | ||
local UrlCheck = { | local UrlCheck = { | ||
suite = 'vCard', | suite = 'vCard', | ||
serial = '2020- | serial = '2020-10-23', | ||
item = 40849609 | item = 40849609 | ||
} | } | ||
| Zeile 83: | Zeile 83: | ||
-- user and password | -- user and password | ||
s, count = s:gsub( '@', '@' ) | |||
if count > 1 then | if count > 1 then | ||
return 9 | return 9 | ||
| Zeile 94: | Zeile 94: | ||
end | end | ||
user, count = user:gsub( ':', ':' ) | |||
if count > 1 then | if count > 1 then | ||
return 11 | return 11 | ||
| Zeile 115: | Zeile 115: | ||
-- host and port | -- host and port | ||
host, count = host:gsub( ':', ':' ) | |||
if count > 1 then | if count > 1 then | ||
return 15 | return 15 | ||
| Zeile 158: | Zeile 158: | ||
function uc.uriEncodePath( url ) | function uc.uriEncodePath( url ) | ||
local at, | local at, to = url:find( '[^/]/[^/]' ) | ||
if at then | if at then | ||
local domain = url:sub( 1, at + 1 ) | local domain = url:sub( 1, at + 1 ) | ||