Skip to content

Commit 3af4fcf

Browse files
NoTwistedHereRiisDev
andcommittedNov 3, 2022
Update FormatTable.lua
fixed a problem iris was encountering and couldn't fix (?) Co-Authored-By: Iris <[email protected]>
1 parent c64f292 commit 3af4fcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎FormatTable.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,12 @@ local _FormatTable; _FormatTable = YieldableFunc(function(Table, Options, Indent
325325
Root = typeof(Root) == "string" and Root or "Table"
326326
Checked = type(Checked) == "table" and Checked or {}
327327
Indents = Options.NoIndentation and 1 or Indents or 1
328-
Checked[Table] = Tostring(Table)
329328

330329
local Metatable, IsProxy = getrawmetatable(Table), typeof(Table) == "userdata"
331330
local TableCount, TabWidth, Count = IsProxy and 0 or CountTable(Table), Options.NoIndentation and " " or " ", 1
332331

332+
Checked[Table] = TableCount
333+
333334
if TableCount >= 3e3 and not Options.LargeTables then
334335
return ("{ \"Table is too large\" }; --// Max: 5e3, Got: %d"):format(TableCount)
335336
elseif IsProxy then

0 commit comments

Comments
 (0)
Please sign in to comment.