mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Skip over contiguous linear whitespace in a single step
This commit is contained in:
parent
f2548e68a8
commit
9289bbccee
1 changed files with 3 additions and 4 deletions
|
|
@ -292,10 +292,9 @@ local function skip_lws(s, pos)
|
|||
local _, e
|
||||
|
||||
while true do
|
||||
while string.match(s, "^[ \t]", pos) do
|
||||
pos = pos + 1
|
||||
end
|
||||
_, e = string.find(s, "^\r?\n[ \t]", pos)
|
||||
_, pos = string.find(s, "^[ \t]*", pos)
|
||||
pos = pos + 1
|
||||
_, e = string.find(s, "^\r?\n[ \t]+", pos)
|
||||
if not e then
|
||||
return pos
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue