mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Fixes column ids lint
This commit is contained in:
parent
ce66722182
commit
9f29c34b4a
1 changed files with 11 additions and 2 deletions
|
|
@ -786,9 +786,18 @@ local function validateServer(v)
|
|||
end
|
||||
|
||||
local function validateColumnsIds(v)
|
||||
|
||||
-- An Array is composed by a series of string separated by commas
|
||||
-- e.g. column1,column2,column3
|
||||
-- So split by comma and check each single column with validateSingleWord
|
||||
local columns = string.split(v, ",")
|
||||
|
||||
for _, column_id in pairs(columns) do
|
||||
if not validateSingleWord(column_id) then
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
return true
|
||||
--return json.decode(v) ~= nil
|
||||
end
|
||||
|
||||
local function validateDate(p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue