mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Strip carriage returns from unpwdb input files
This commit is contained in:
parent
926182d851
commit
66f43184f6
1 changed files with 2 additions and 2 deletions
|
|
@ -111,8 +111,8 @@ local filltable = function(filename, table)
|
|||
|
||||
for l in file:lines() do
|
||||
-- Comments takes up a whole line
|
||||
if not l:match("#!comment:") then
|
||||
table[#table + 1] = l
|
||||
if not l:match("^#!comment:") then
|
||||
table[#table + 1] = l:gsub("[\r\n]+$", "")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue