Diff

mod_firewall/mod_firewall.lua @ 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
parent 2080:a435db77a5e5
child 2100:cbd0095e9302
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: