Added starts() function as lua_utils is no longer referenced and thus this function is necessary

This commit is contained in:
Luca Deri 2020-08-14 12:47:07 +02:00
parent 1160066b08
commit e04efa250e

View file

@ -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