Modul:UrlCheck: Unterschied zwischen den Versionen

+Thai diacritical marks
(loading module only if required)
(+Thai diacritical marks)
Zeile 3: Zeile 3:
moduleInterface = {
moduleInterface = {
suite  = 'UrlCheck',
suite  = 'UrlCheck',
serial = '2022-05-06',
serial = '2023-01-17',
item  = 40849609
item  = 40849609
}
}
Zeile 144: Zeile 144:
if uc.ip4( host ) then -- is ip4 address
if uc.ip4( host ) then -- is ip4 address
return 2
return 2
elseif not mw.ustring.match( host, '^[%w%.%-]+%.%a%a+$' ) then
elseif not mw.ustring.match( host, '^[ะ-๏%w%.%-]+%.%a%a+$' ) then
-- Thai diacritical marks ะ (0E30) - ๏ (0E4F)
return 22
return 22
elseif not host:match( '^[%w%.%-]+%.%a%a+$' ) then
elseif not host:match( '^[%w%.%-]+%.%a%a+$' ) then
Anonymer Benutzer