mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added starts() function as lua_utils is no longer referenced and thus this function is necessary
This commit is contained in:
parent
1160066b08
commit
e04efa250e
1 changed files with 8 additions and 0 deletions
|
|
@ -20,6 +20,14 @@ tracker.track_interface()
|
|||
|
||||
-- UTILITY FUNCTIONS
|
||||
|
||||
function starts(String,Start)
|
||||
if((String == nil) or (Start == nil)) then
|
||||
return(false)
|
||||
end
|
||||
|
||||
return string.sub(String,1,string.len(Start))==Start
|
||||
end
|
||||
|
||||
-- Searches into the keys of the table
|
||||
local function validateChoiceByKeys(defaults, v)
|
||||
if defaults[v] ~= nil then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue