changeset 2124:89363766202c

mod_firewall: Add comment to document idsafe()
author Matthew Wild <mwild1@gmail.com>
date Thu, 17 Mar 2016 21:27:24 +0000
parents d843e8f1ed78
children edf5cf3c474b
files mod_firewall/mod_firewall.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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