libs/web: allow '!' and '.' symbols in phonedigit datatype
[project/luci.git] / libs / web / luasrc / cbi / datatypes.lua
index 32530c4..c5f4ec0 100644 (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