Module:LuaCall: Difference between revisions
From Test Wiki
Content deleted Content added
Need to check there's a period in the function name BEFORE the first match attempt |
|||
| Line 29: | Line 29: | ||
end |
end |
||
local reserved_arraypart=_G |
local reserved_arraypart=_G |
||
repeat |
|||
| ⚫ | |||
reserved_functionpart,reserved_function=mw.ustring.match(reserved_function,"^(%a[^%.]*)%.(.*)$") |
reserved_functionpart,reserved_function=mw.ustring.match(reserved_function,"^(%a[^%.]*)%.(.*)$") |
||
reserved_arraypart=reserved_arraypart[reserved_functionpart] |
reserved_arraypart=reserved_arraypart[reserved_functionpart] |
||
| ⚫ | |||
end |
|||
local reserved_call=reserved_arraypart[reserved_function] |
local reserved_call=reserved_arraypart[reserved_function] |
||
if type(reserved_call)~="function" then |
if type(reserved_call)~="function" then |
||