Module:Command: Difference between revisions

mNo edit summary
mNo edit summary
Line 40: Line 40:
local startPos, endPos = params[1]:find( "'[^']-'" )
local startPos, endPos = params[1]:find( "'[^']-'" )
local startPosn, endPosn = params[1]:find('"[^"]-"')
local startPosn, endPosn = params[1]:find('"[^"]-"')
if startPos and startPos and startPosn < startPos then
if startPosn and startPos and startPosn < startPos then
startPos, endPos = startPosn, endPosn
startPos, endPos = startPosn, endPosn
end
end