Update 'Controller/CropController.lua'
This commit is contained in:
parent
7827a83f31
commit
b4fb543f13
@ -21,7 +21,7 @@ function CropController:toMatrix(str)
|
||||
str = str:sub(2, len - 1)
|
||||
len = len - 2
|
||||
if ob == 1 then
|
||||
return toArray(str)
|
||||
return self:toArray(str)
|
||||
else
|
||||
local level = 0
|
||||
local lastC = 0
|
||||
@ -33,7 +33,7 @@ function CropController:toMatrix(str)
|
||||
level = level - 1
|
||||
elseif c == "," then
|
||||
if level == 0 then
|
||||
matrix[#matrix+1] = toMatrix(str:sub(lastC + 1, i - 1))
|
||||
matrix[#matrix+1] = self:toMatrix(str:sub(lastC + 1, i - 1))
|
||||
lastC = i
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user