mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Initial report template editor (wip)
This commit is contained in:
parent
c7da0b85c1
commit
f52ba41602
20 changed files with 895 additions and 80 deletions
|
|
@ -422,12 +422,7 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function replace(str, o, n)
|
||||
local i, j = string.find(str, o, 1, true)
|
||||
if i then
|
||||
return string.sub(str, 1, i-1) .. n .. string.sub(str, j+1, -1)
|
||||
else
|
||||
return str
|
||||
end
|
||||
return string.gsub(str, o, n)
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue