mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Removes excessive pattern escaping; no functional change
This commit is contained in:
parent
d5e7649829
commit
0bc76dea8e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue