1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 21:09:00 +00:00

Move string utility functions to stringaux.lua

This commit is contained in:
dmiller
2018-10-18 01:08:19 +00:00
parent 39cfbdf4e2
commit 0500811f5a
140 changed files with 521 additions and 418 deletions

View File

@@ -13,6 +13,7 @@ local os = require("os")
local stdnse = require("stdnse")
local table = require("table")
local string = require "string"
local stringaux = require "stringaux"
_ENV = stdnse.module("bjnp", stdnse.seeall)
@@ -325,7 +326,7 @@ Helper = {
end
local attrs, kvps = {}, {}
for k, v in ipairs(stdnse.strsplit(";", identity.data)) do
for k, v in ipairs(stringaux.strsplit(";", identity.data)) do
local nm, val = v:match("^([^:]*):(.*)$")
if ( nm ) then kvps[nm] = val end
end