libs/web: allow '!' and '.' symbols in phonedigit datatype
This commit is contained in:
parent
f60197c15c
commit
c6712bdc3c
2 changed files with 2 additions and 2 deletions
|
@ -299,7 +299,7 @@ var cbi_validators = {
|
||||||
},
|
},
|
||||||
'phonedigit': function()
|
'phonedigit': function()
|
||||||
{
|
{
|
||||||
return (this.match(/^[0-9\*#]+$/) != null);
|
return (this.match(/^[0-9\*#!\.]+$/) != null);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -341,5 +341,5 @@ function maxlength(val, max)
|
||||||
end
|
end
|
||||||
|
|
||||||
function phonedigit(val)
|
function phonedigit(val)
|
||||||
return (val:match("^[0-9\*#]+$") ~= nil)
|
return (val:match("^[0-9\*#!%.]+$") ~= nil)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue