From: Manuel Munz Date: Fri, 13 Apr 2012 18:12:34 +0000 (+0000) Subject: libs/datatypes: Fix typo X-Git-Tag: 0.11.0~795 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7fdb055265b7afad4ff1db8a9fb678cbbeb77a97;p=project%2Fluci.git libs/datatypes: Fix typo --- diff --git a/libs/web/luasrc/cbi/datatypes.lua b/libs/web/luasrc/cbi/datatypes.lua index 87019c2250..d3077f954c 100644 --- a/libs/web/luasrc/cbi/datatypes.lua +++ b/libs/web/luasrc/cbi/datatypes.lua @@ -306,6 +306,6 @@ function max(val, max) return false end -function ponedigit(val) +function phonedigit(val) return (val:match("^[0-9\*#]+$") ~= nil) end