Software /
code /
prosody-modules
Changeset
2099:a8c701631d0b
mod_firewall: Make idsafe() a global function so libraries can re-use it
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 17 Mar 2016 11:22:18 +0000 |
parents | 2098:1124758cac7f |
children | 2100:cbd0095e9302 |
files | mod_firewall/mod_firewall.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua Wed Mar 16 12:55:47 2016 +0000 +++ b/mod_firewall/mod_firewall.lua Thu Mar 17 11:22:18 2016 +0000 @@ -27,8 +27,8 @@ }; }; -local function idsafe(name) - return not not name:match("^%a[%w_]*$") +function idsafe(name) + return name:match("^%a[%w_]*$") end -- Dependency locations: