mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Skip over contiguous linear whitespace in a single step
This commit is contained in:
@@ -292,10 +292,9 @@ local function skip_lws(s, pos)
|
|||||||
local _, e
|
local _, e
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
while string.match(s, "^[ \t]", pos) do
|
_, pos = string.find(s, "^[ \t]*", pos)
|
||||||
pos = pos + 1
|
pos = pos + 1
|
||||||
end
|
_, e = string.find(s, "^\r?\n[ \t]+", pos)
|
||||||
_, e = string.find(s, "^\r?\n[ \t]", pos)
|
|
||||||
if not e then
|
if not e then
|
||||||
return pos
|
return pos
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user