Diff

mod_firewall/mod_firewall.lua @ 2124:89363766202c

mod_firewall: Add comment to document idsafe()
author Matthew Wild <mwild1@gmail.com>
date Thu, 17 Mar 2016 21:27:24 +0000
parent 2118:643b254e75de
child 2125:edf5cf3c474b
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua	Fri Mar 18 01:18:16 2016 +0100
+++ b/mod_firewall/mod_firewall.lua	Thu Mar 17 21:27:24 2016 +0000
@@ -37,6 +37,7 @@
 	chains[k] = v;
 end
 
+-- Returns the input if it is safe to be used as a variable name, otherwise nil
 function idsafe(name)
 	return name:match("^%a[%w_]*$")
 end