Anonymous

Module:Shared: Difference between revisions

From Melvor Idle
m
Ammend compareString function, converting inputs to strings
m (titleCase: Better describe function)
m (Ammend compareString function, converting inputs to strings)
Line 430: Line 430:
if left == nil or right == nil then return false end
if left == nil or right == nil then return false end
-- Convert inputs to strings, just in case
left =  tostring(left)
right = tostring(right)
if ignoreCase == true then
if ignoreCase == true then
return left:upper() == right:upper()
return left:upper() == right:upper()
2,875

edits