mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Improve cli hint
This commit is contained in:
parent
4753d08660
commit
15509c3468
2 changed files with 13 additions and 3 deletions
|
|
@ -30,8 +30,12 @@ function startswith(s, char)
|
|||
return string.sub(s, 1, string.len(s)) == char
|
||||
end
|
||||
|
||||
-- strsplit
|
||||
-- endswith
|
||||
function endswith(s, char)
|
||||
return string.sub(s, -#char) == char
|
||||
end
|
||||
|
||||
-- strsplit
|
||||
function strsplit(s, delimiter)
|
||||
result = {};
|
||||
for match in (s..delimiter):gmatch("(.-)"..delimiter) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue