projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f7832b
)
Replace some util.splits with gmatch and match
author
Steven Barth
<steven@midlink.org>
Tue, 9 Sep 2008 16:04:49 +0000
(16:04 +0000)
committer
Steven Barth
<steven@midlink.org>
Tue, 9 Sep 2008 16:04:49 +0000
(16:04 +0000)
libs/uvl/luasrc/uvl.lua
patch
|
blob
|
history
diff --git
a/libs/uvl/luasrc/uvl.lua
b/libs/uvl/luasrc/uvl.lua
index 471829af3e63d6d5411ea1a3adf5077b27841c3e..35e5f5311dec2f51553dc2236ff92c8c847d979e 100644
(file)
--- 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