mirror of
https://github.com/ntop/ntopng.git
synced 2026-11-01 03:21:49 +00:00
table.insert to ptr ref improvement, sites doc update (#11113)
* table.insert to ptr ref improvement * Updated sites doc
This commit is contained in:
parent
7798a478ae
commit
ab445aab93
50 changed files with 205 additions and 169 deletions
|
|
@ -14,12 +14,12 @@ function split(s, delimiter)
|
|||
if delimiter == nil then
|
||||
-- No delimiter, split all characters
|
||||
for match in s:gmatch"." do
|
||||
table.insert(result, match);
|
||||
result[#result + 1] = match;
|
||||
end
|
||||
else
|
||||
-- Split by delimiter
|
||||
for match in (s..delimiter):gmatch("(.-)"..delimiter) do
|
||||
table.insert(result, match);
|
||||
result[#result + 1] = match;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue