From c6712bdc3c653d694d61bab01628f1621bcb73a3 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 5 Feb 2013 13:15:48 +0000 Subject: libs/web: allow '!' and '.' symbols in phonedigit datatype --- libs/web/luasrc/cbi/datatypes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/web/luasrc/cbi') diff --git a/libs/web/luasrc/cbi/datatypes.lua b/libs/web/luasrc/cbi/datatypes.lua index 32530c465a..c5f4ec0f0d 100644 --- a/libs/web/luasrc/cbi/datatypes.lua +++ b/libs/web/luasrc/cbi/datatypes.lua @@ -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 -- cgit v1.2.3