Here my function that i use for my testing purpose before i actually use it for something else like checking prompt, etc.
however, i noticed during testing that it has unexpected result that contrast what has said in the document about what OnPluginMXPcloseTag will give in its variable.
function within my plugin:
with that mind, i should have got the prompt line in text variable like this:
however, the result differs from my expectation when it show the variables in name and text content:
So, I assumed there may be a bug on your hand, Nick.
however, i noticed during testing that it has unexpected result that contrast what has said in the document about what OnPluginMXPcloseTag will give in its variable.
function within my plugin:
function OnPluginMXPcloseTag(name, text)
local name = name
local text = text
Note(type(name))
Note("NAME:" .. tostring(name) .. "TEXT:".. tostring(text))
if name == "PROMPT" then
confirm = string.find(text, "^(%d+)h, (%d+)m, (%d+)e, (%d+)w (c?e?x?k?d?b?)-$")
if confirm then
Note("I got you!")
return
end
end
end
with that mind, i should have got the prompt line in text variable like this:
<PROMPT>3310h, 2605m, 14400e, 14400w exk-</PROMPT>
however, the result differs from my expectation when it show the variables in name and text content:
NAME:prompt,3310h, 2605m, 14400e, 14400w exk-TEXT:nil
So, I assumed there may be a bug on your hand, Nick.