fix: allow digits in usernames
This commit is contained in:
2
gen.lua
2
gen.lua
@@ -12,7 +12,7 @@ for l in io.lines(conf) do
|
|||||||
l = l:match "^%s*(.-)%s*$";
|
l = l:match "^%s*(.-)%s*$";
|
||||||
|
|
||||||
if l ~= "" then
|
if l ~= "" then
|
||||||
local user, params = l:match "^([%a_]+)%s+=%s+(.*)$";
|
local user, params = l:match "^([%a%d_]+)%s+=%s+(.*)$";
|
||||||
if not user then
|
if not user then
|
||||||
error(conf .. ":" .. i .. ": invalid syntax", 0);
|
error(conf .. ":" .. i .. ": invalid syntax", 0);
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user