Skip to content

Commit 9d9b620

Browse files
committed
style
1 parent fcd4f9a commit 9d9b620

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/resty/etcd/v3.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ function _M.new(opts)
146146
end
147147

148148
for _, host in ipairs(http_hosts) do
149-
local m, err = re_match(host, [=[([^\/]+):\/\/([\da-zA-Z.-]+|\[[\da-fA-F:]+\]):?(\d+)?$]=], "jo")
149+
local m, err = re_match(host,
150+
[=[([^\/]+):\/\/([\da-zA-Z.-]+|\[[\da-fA-F:]+\]):?(\d+)?$]=], "jo")
150151
if not m then
151152
return nil, "invalid http host: " .. host .. ", err: " .. (err or "not matched")
152153
end

0 commit comments

Comments
 (0)