1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Strip carriage returns from unpwdb input files

This commit is contained in:
dmiller
2024-01-19 21:54:09 +00:00
parent 926182d851
commit 66f43184f6

View File

@@ -111,8 +111,8 @@ local filltable = function(filename, table)
for l in file:lines() do for l in file:lines() do
-- Comments takes up a whole line -- Comments takes up a whole line
if not l:match("#!comment:") then if not l:match("^#!comment:") then
table[#table + 1] = l table[#table + 1] = l:gsub("[\r\n]+$", "")
end end
end end