diff options
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r-- | libs/web/luasrc/cbi/datatypes.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/web/luasrc/cbi/datatypes.lua b/libs/web/luasrc/cbi/datatypes.lua index 71f4a2a56..87019c225 100644 --- a/libs/web/luasrc/cbi/datatypes.lua +++ b/libs/web/luasrc/cbi/datatypes.lua @@ -305,3 +305,7 @@ function max(val, max) return false end + +function ponedigit(val) + return (val:match("^[0-9\*#]+$") ~= nil) +end |