Skip to content

Commit e707056

Browse files
author
Beernaert Robbe
committed
this made it work and supports multiple functions.
maby obfuscate the key a bit more.
1 parent 77f5d08 commit e707056

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

modules/vstudio/_preload.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@
633633
end
634634

635635
return nil
636-
end,
636+
end
637637
}
638638
}
639639

src/base/api.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@
265265

266266
if type(field.allowed) == "table" then
267267
for i, item in ipairs(field.allowed) do
268-
if(type(item) == "function") then
269-
field.allowed["dynamicvalidator"] = item
270-
else
271-
field.allowed[item:lower()] = item
272-
end
268+
if type(item) == "string" then
269+
field.allowed[item:lower()] = item
270+
elseif type(item) == "function" then
271+
field.allowed["_function_" .. i .."_"] = item
272+
end
273273
end
274274
end
275275

0 commit comments

Comments
 (0)