Add alert_ngi_trust_event alerts

This commit is contained in:
Alfredo Cardigliano 2021-04-07 13:07:38 +02:00
parent d20b1e4739
commit c5ca72c6ba
6 changed files with 91 additions and 6 deletions

View file

@ -2623,8 +2623,16 @@ end
function split(s, delimiter)
result = {};
if(s ~= nil) then
for match in (s..delimiter):gmatch("(.-)"..delimiter) do
table.insert(result, match);
if delimiter == nil then
-- No delimiter, split all characters
for match in s:gmatch"." do
table.insert(result, match);
end
else
-- Split by delimiter
for match in (s..delimiter):gmatch("(.-)"..delimiter) do
table.insert(result, match);
end
end
end
return result;