# HG changeset patch # User Matthew Wild # Date 1458213738 0 # Node ID a8c701631d0b2ce9158b4d12679a36f956275d8b # Parent 1124758cac7f3214c6b6f03ff238afad6cf10eed mod_firewall: Make idsafe() a global function so libraries can re-use it diff -r 1124758cac7f -r a8c701631d0b mod_firewall/mod_firewall.lua --- 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: