Skip to content

Commit

Permalink
fix: allow to modify parameters with underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
open-dynaMIX committed Jan 2, 2021
1 parent b4b1701 commit 411ca7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ local function validate_number_param(param)
end

local function validate_name_param(param)
if not string.match(param, '^[a-z0-9/-]+$') then
if not string.match(param, '^[a-z0-9_/-]+$') then
return false, 'Parameter name contains invalid characters'
else
return true, nil
Expand Down

0 comments on commit 411ca7b

Please sign in to comment.