1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 03:49:01 +00:00

NSEdoc fixes

This commit is contained in:
dmiller
2025-03-13 18:13:21 +00:00
parent fb58d2440e
commit b2ebc18360
17 changed files with 40 additions and 36 deletions

View File

@@ -41,14 +41,13 @@ end
--- Split a string at a given delimiter, which may be a pattern.
--
-- If you want to loop over the resulting values, consider using string.gmatch instead.
-- If you want to loop over the resulting values, consider using <code>string.gmatch</code> instead.
-- @usage
-- stringaux.strsplit(",%s*", "Anna, Bob, Charlie, Dolores")
-- --> { "Anna", "Bob", "Charlie", "Dolores" }
-- @param pattern Pattern that separates the desired strings.
-- @param text String to split.
-- @return Array of substrings without the separating pattern.
-- @see string.gmatch
function strsplit(pattern, text)
local list, pos = {}, 1;