ng: Fix bug that would create a VirtualHost""
Seems * in patterns behave differently before Lua 5.3 Thanks to tarneo for reporting this issue
This commit is contained in:
parent
aa886a0b49
commit
0581c684a5
3 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ local function _split(s, sep)
|
||||||
if not s then return nil; end
|
if not s then return nil; end
|
||||||
sep = sep or ",";
|
sep = sep or ",";
|
||||||
local parts = {};
|
local parts = {};
|
||||||
for part in s:gmatch("[^"..sep.."]*") do
|
for part in s:gmatch("[^"..sep.."]+") do
|
||||||
parts[#parts+1] = part;
|
parts[#parts+1] = part;
|
||||||
end
|
end
|
||||||
return parts;
|
return parts;
|
||||||
|
|
|
@ -16,7 +16,7 @@ local function _split(s, sep)
|
||||||
if not s then return nil; end
|
if not s then return nil; end
|
||||||
sep = sep or ",";
|
sep = sep or ",";
|
||||||
local parts = {};
|
local parts = {};
|
||||||
for part in s:gmatch("[^"..sep.."]*") do
|
for part in s:gmatch("[^"..sep.."]+") do
|
||||||
parts[#parts+1] = part;
|
parts[#parts+1] = part;
|
||||||
end
|
end
|
||||||
return parts;
|
return parts;
|
||||||
|
|
|
@ -16,7 +16,7 @@ local function _split(s, sep)
|
||||||
if not s then return nil; end
|
if not s then return nil; end
|
||||||
sep = sep or ",";
|
sep = sep or ",";
|
||||||
local parts = {};
|
local parts = {};
|
||||||
for part in s:gmatch("[^"..sep.."]*") do
|
for part in s:gmatch("[^"..sep.."]+") do
|
||||||
parts[#parts+1] = part;
|
parts[#parts+1] = part;
|
||||||
end
|
end
|
||||||
return parts;
|
return parts;
|
||||||
|
|
Loading…
Reference in a new issue