ESO LUA
string.find does not support standard frontier pattern
%f[set] matching. This is very useful for addons, etc, needing to find whole words in strings. Both of these code snippets should return YES since the match 'word' is there in the string (which is the expected result), but they do not. A standalone LUA compiler returns YES while ESO returns NO using the same code.
Note: This is the same result for 'zo_strfind' which has the same unsupported result.
More information here:
https://github.com/lua/lua/blob/eadd...anual.of#L7485
http://lua-users.org/wiki/FrontierPattern
Standalone LUA Interpreter with support, Returns YES (expected)
Lua Code:
local text = "there is a word here"
local match = "%f[%a]word%f[%A]"
if string.find(text, match) then
print("YES")
else
print("NO")
end
ESO/Havok LUA Interpreter, Returns NO (unsupported)
Lua Code:
local text = "there is a word here"
local match = "%f[%a]word%f[%A]"
if string.find(text, match) then
d("YES")
else
d("NO")
end
All the best, thanks for your time!