Either it's a bug, or just a feature that's missing/was never implemented, but string.find will not (can't?) match on dashes. I've tested and it matches every other common special/grammatical character I could think of(quotes, commas, semi-colons, colons, apostrophes, periods, backslashes, forwardslashes, straight slashes, underscore, parentheses....I stopped testing after parentheses)
I tested it with the following code to confirm.
testing = {'samwise "the gardener" gamgee', "Daerlain, an elderly noblewoman", "a keen-eyed archer", "tick;tock", "rat:fink", " much ado 'bout nothing", "dr. pepsi", "green\blue", "red/orange", "white|black", "magick_magic", "(svo)"}
denizen = "a keen-eyed archer"
for k,v in ipairs(testing) do
if v:find(denizen) then
echo("\n denizen found \n")
break
end -- if
end -- for
Does anyone know of a function that performs the same as string.match, but will match on dashes?
or alternatively, who/how do I report this to the mudlet Devs as a potential bug?
Thanks.
()()
(..)
(")(")