mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update luci-base
This commit is contained in:
parent
f7b2096fa2
commit
b2999bb6b2
64 changed files with 2089 additions and 2008 deletions
|
@ -218,12 +218,13 @@ var cbi_validators = {
|
|||
((ipv4only == 1) && cbi_validators.ip4addr.apply(this));
|
||||
},
|
||||
|
||||
'hostname': function()
|
||||
'hostname': function(strict)
|
||||
{
|
||||
if (this.length <= 253)
|
||||
return (this.match(/^[a-zA-Z0-9]+$/) != null ||
|
||||
return (this.match(/^[a-zA-Z0-9_]+$/) != null ||
|
||||
(this.match(/^[a-zA-Z0-9_][a-zA-Z0-9_\-.]*[a-zA-Z0-9]$/) &&
|
||||
this.match(/[^0-9.]/)));
|
||||
this.match(/[^0-9.]/))) &&
|
||||
(!strict || !this.match(/^_/));
|
||||
|
||||
return false;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue