Skip to content

Commit

Permalink
fix(packages): Use sortedpairs to avoid non-determinism
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Jul 22, 2020
1 parent 5aad397 commit a28ef06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/inputfilter.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local function transformContent(content, transformFunction, extraArgs)
local newContent = {}
for k, v in pairs(content) do
for k, v in SU.sortedpairs(content) do
if type(k) == "number" then
if type(v) == "string" then
local transformed = transformFunction(v, content, extraArgs)
Expand Down

0 comments on commit a28ef06

Please sign in to comment.