Changes

no edit summary
Line 619: Line 619:  
         local i = 0
 
         local i = 0
 
         local count = 0
 
         local count = 0
         for j=0, 2 do
+
         while i ~= nil do
            local prev = i
   
             _, i = string.find(str,"]]",i)
 
             _, i = string.find(str,"]]",i)
             if i == nil then
+
             if i ~= nil then
                i = prev
  −
            else
   
                 count = count + 1
 
                 count = count + 1
 
                 if count % 3 == 0 and str ~= nil then
 
                 if count % 3 == 0 and str ~= nil then
5,421

edits