luci-0.10: Merge r6887
This commit is contained in:
parent
18074ab09c
commit
a6f83e195d
2 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ var cbi_validators = {
|
|||
},
|
||||
|
||||
'hostname': function(v)
|
||||
{ if ( v.length <= 24 )
|
||||
{ if ( v.length <= 253 )
|
||||
return (v.match(/^[a-zA-Z0-9][a-zA-Z0-9\-.]*[a-zA-Z0-9]$/) != null);
|
||||
},
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ function macaddr(val)
|
|||
end
|
||||
|
||||
function hostname(val)
|
||||
if val and (#val < 25) and val.match(val, "^[a-zA-Z0-9][a-zA-Z0-9%-%.]*[a-zA-Z0-9]$") then
|
||||
if val and (#val < 254) and val.match(val, "^[a-zA-Z0-9][a-zA-Z0-9%-%.]*[a-zA-Z0-9]$") then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue