mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Move string utility functions to stringaux.lua
This commit is contained in:
parent
39cfbdf4e2
commit
0500811f5a
140 changed files with 521 additions and 418 deletions
|
|
@ -2357,7 +2357,7 @@ output.users[#output.users + 1] = "root"
|
|||
output.users[#output.users + 1] = "foo"
|
||||
output.users[#output.users + 1] = "bar"
|
||||
local output_str = string.format("hostname: %s\n", output.hostname)
|
||||
output_str = output_str .. "\n" .. stdnse.strjoin(", ", output.users)
|
||||
output_str = output_str .. "\n" .. stringaux.strjoin(", ", output.users)
|
||||
return output, output_str
|
||||
</programlisting>
|
||||
then the normal output would appear as follows:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue