mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
fix for trailing space and query (#4638)
This commit is contained in:
parent
d81fd5ffa0
commit
85d6f58c0b
2 changed files with 17 additions and 4 deletions
|
|
@ -41,12 +41,12 @@ bitsToSizeMultiplier = format_utils.bitsToSizeMultiplier
|
|||
-- ##############################################
|
||||
|
||||
-- Note: Regexs are applied by default. Pass plain=true to disable them.
|
||||
function string.contains(String,Start,plain)
|
||||
if type(String) ~= 'string' or type(Start) ~= 'string' then
|
||||
function string.contains(str, start, is_plain)
|
||||
if type(str) ~= 'string' or type(start) ~= 'string' then
|
||||
return false
|
||||
end
|
||||
|
||||
local i,j = string.find(String, Start, 1, plain)
|
||||
local i, _ = string.find(str, start, 1, is_plain)
|
||||
|
||||
return(i ~= nil)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue