libs/web: allow '!' and '.' symbols in phonedigit datatype

This commit is contained in:
Jo-Philipp Wich 2013-02-05 13:15:48 +00:00
parent f60197c15c
commit c6712bdc3c
2 changed files with 2 additions and 2 deletions

View file

@ -299,7 +299,7 @@ var cbi_validators = {
},
'phonedigit': function()
{
return (this.match(/^[0-9\*#]+$/) != null);
return (this.match(/^[0-9\*#!\.]+$/) != null);
}
};

View file

@ -341,5 +341,5 @@ function maxlength(val, max)
end
function phonedigit(val)
return (val:match("^[0-9\*#]+$") ~= nil)
return (val:match("^[0-9\*#!%.]+$") ~= nil)
end