From 48abcbb085f8646d316104d7815058f19d610ad7 Mon Sep 17 00:00:00 2001 From: mahmadzaid Date: Sun, 25 Jun 2023 20:13:35 +0100 Subject: [PATCH] Assign a copy for each token in case of future modifications --- shapers/base.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shapers/base.lua b/shapers/base.lua index 330dea190..e9e74405e 100644 --- a/shapers/base.lua +++ b/shapers/base.lua @@ -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