projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a4c192
)
UVL: Export raw value of "valueof" for references
author
Steven Barth
<steven@midlink.org>
Wed, 10 Sep 2008 15:35:11 +0000
(15:35 +0000)
committer
Steven Barth
<steven@midlink.org>
Wed, 10 Sep 2008 15:35:11 +0000
(15:35 +0000)
libs/uvl/luasrc/uvl.lua
patch
|
blob
|
history
diff --git
a/libs/uvl/luasrc/uvl.lua
b/libs/uvl/luasrc/uvl.lua
index f3334615e6864d08bd8bb598cc0a1c1b98965580..52531be32d9f9bd85ec6b5883013eae2cc1c652b 100644
(file)
--- a/
libs/uvl/luasrc/uvl.lua
+++ b/
libs/uvl/luasrc/uvl.lua
@@
-579,6
+579,7
@@
function UVL._parse_var(self, scheme, k, v)
end
t.type = "reference"
t.values = values
+ t.valueof = type(v2) == "table" and v2 or {v2}
elseif k == "required" then
t[k] = _bool(v2)
else