# HG changeset patch # User Matthew Wild # Date 1458250044 0 # Node ID 89363766202cede9076722b87a3d9dfedaab0d17 # Parent d843e8f1ed7818330672923f5e456ec992784cf0 mod_firewall: Add comment to document idsafe() diff -r d843e8f1ed78 -r 89363766202c mod_firewall/mod_firewall.lua --- 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