1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-10 08:29:02 +00:00

Removes excessive pattern escaping; no functional change

This commit is contained in:
nnposter
2017-08-03 22:13:12 +00:00
parent d5e7649829
commit 0bc76dea8e

View File

@@ -160,7 +160,7 @@ function parse(url, default)
return ""
end)
-- get scheme. Lower-case according to RFC 3986 section 3.1.
url = string.gsub(url, "^([%w][%w%+%-%.]*)%:",
url = string.gsub(url, "^(%w[%w.+-]*):",
function(s) parsed.scheme = string.lower(s); return "" end)
-- get authority
url = string.gsub(url, "^//([^/]*)", function(n)