summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-09 16:04:49 +0000
committerSteven Barth <steven@midlink.org>2008-09-09 16:04:49 +0000
commit8766b050bd9e6399a75ac8604516631e7562c573 (patch)
tree764c921b7791aa3659f86d4d3e8bc31c3725fc2e
parent9f7832b827a682b5517bdb3cd0a9237b49eaebaf (diff)
Replace some util.splits with gmatch and match
-rw-r--r--libs/uvl/luasrc/uvl.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua
index 471829af3..35e5f5311 100644
--- a/libs/uvl/luasrc/uvl.lua
+++ b/libs/uvl/luasrc/uvl.lua
@@ -666,10 +666,9 @@ function UVL._read_dependency( self, values, deps )
if values then
values = ( type(values) == "table" and values or { values } )
for _, value in ipairs(values) do
- local parts = util.split( value, "%s*,%s*", nil, true )
local condition = { }
- for i, val in ipairs(parts) do
- local k, v = unpack(util.split(val, "%s*=%s*", nil, true))
+ for val in value:gmatch("[^%s,]+") do
+ local k, v = val:match("([^%s]+)%s*=%s*([^%s]+)")
if k and (
k:match("^"..expr.."%."..expr.."%."..expr.."$") or