1
0
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:
nnposter
2025-10-26 01:35:07 +00:00
parent f2548e68a8
commit 9289bbccee

View File

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