mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add string.containsIgnoreCase
This commit is contained in:
parent
32635385fe
commit
dc4e590501
2 changed files with 11 additions and 5 deletions
|
|
@ -58,6 +58,12 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function string.containsIgnoreCase(str, start, is_plain)
|
||||
return string.contains(string.lower(str), string.lower(start), is_plain)
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function shortenString(name, max_len)
|
||||
local ellipsis = "\u{2026}" -- The unicode ellipsis (takes less space than three separate dots)
|
||||
if(name == nil) then return("") end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue