web: Relax hostname validation for length
[project/luci.git] / libs / web / htdocs / luci-static / resources / cbi.js
index d12d050..2bcfb8c 100644 (file)
@@ -141,7 +141,7 @@ var cbi_validators = {
        },
 
        'hostname': function(v)
        },
 
        '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);
        },
 
                        return (v.match(/^[a-zA-Z0-9][a-zA-Z0-9\-.]*[a-zA-Z0-9]$/) != null);
        },