diff --git a/ng/configs/prosody-0.11.cfg.lua b/ng/configs/prosody-0.11.cfg.lua index eb38627..3297d5a 100644 --- a/ng/configs/prosody-0.11.cfg.lua +++ b/ng/configs/prosody-0.11.cfg.lua @@ -16,7 +16,7 @@ local function _split(s, sep) if not s then return nil; end sep = sep or ","; local parts = {}; - for part in s:gmatch("[^"..sep.."]*") do + for part in s:gmatch("[^"..sep.."]+") do parts[#parts+1] = part; end return parts; diff --git a/ng/configs/prosody-0.12.cfg.lua b/ng/configs/prosody-0.12.cfg.lua index 97988e6..15658f1 100644 --- a/ng/configs/prosody-0.12.cfg.lua +++ b/ng/configs/prosody-0.12.cfg.lua @@ -16,7 +16,7 @@ local function _split(s, sep) if not s then return nil; end sep = sep or ","; local parts = {}; - for part in s:gmatch("[^"..sep.."]*") do + for part in s:gmatch("[^"..sep.."]+") do parts[#parts+1] = part; end return parts; diff --git a/ng/configs/prosody-trunk.cfg.lua b/ng/configs/prosody-trunk.cfg.lua index 97988e6..15658f1 100644 --- a/ng/configs/prosody-trunk.cfg.lua +++ b/ng/configs/prosody-trunk.cfg.lua @@ -16,7 +16,7 @@ local function _split(s, sep) if not s then return nil; end sep = sep or ","; local parts = {}; - for part in s:gmatch("[^"..sep.."]*") do + for part in s:gmatch("[^"..sep.."]+") do parts[#parts+1] = part; end return parts;