Skip to content

Commit

Permalink
Assign a copy for each token in case of future modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmadzaid committed Jun 25, 2023
1 parent f334062 commit 48abcbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shapers/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function shaper:formNnode (contents, token, options)
nodes = nnodeContents,
text = token,
misfit = misfit,
options = options,
options = pl.tablex.copy(options),
language = options.language
})
end
Expand Down

0 comments on commit 48abcbb

Please sign in to comment.