This Regex and this function make MUSHClient crash.
^ ([A-Za-z]+) was in the sign of( the)? ([A-Za-z ]+)( \(retrograde\))?\.$
function Nativity (name, link, wildcards, extraneous)
if (wildcards[1] == "Sun") then
Note (wildcards[1] .. " Ray - " .. signs[wildcards[3]].damage_type .. " Damage")
elseif (wildcards[1] == "Moon" or wildcards[1] == "Tarox" or wildcards[1] == "Aapek" or wildcards[1] == "Papaxi" or wildcards[1] == "Eroee" or wildcards[1] == "Sidiak") then
Note (wildcards[1] .. " Ray - " .. planets[wildcards[1]][signs[wildcards[3]].sign_type])
end
end
This Regex and the same function does not cause a crash.
^ ([A-Za-z]+) was in the sign of( the)? ([A-Za-z ]+)\.$
What am I missing?
^ ([A-Za-z]+) was in the sign of( the)? ([A-Za-z ]+)( \(retrograde\))?\.$
function Nativity (name, link, wildcards, extraneous)
if (wildcards[1] == "Sun") then
Note (wildcards[1] .. " Ray - " .. signs[wildcards[3]].damage_type .. " Damage")
elseif (wildcards[1] == "Moon" or wildcards[1] == "Tarox" or wildcards[1] == "Aapek" or wildcards[1] == "Papaxi" or wildcards[1] == "Eroee" or wildcards[1] == "Sidiak") then
Note (wildcards[1] .. " Ray - " .. planets[wildcards[1]][signs[wildcards[3]].sign_type])
end
end
This Regex and the same function does not cause a crash.
^ ([A-Za-z]+) was in the sign of( the)? ([A-Za-z ]+)\.$
What am I missing?