File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -970,16 +970,15 @@ replaceStrings tfrom tto ts =
970970 (if prefix == mempty
971971 then
972972 maybe
973- (finish (resultAccum <> Builder. fromText replacement))
974- (\ (h,t) -> go t (mconcat [ resultAccum
975- , Builder. fromText replacement
976- , Builder. singleton h ]))
973+ (finish newResultAccum)
974+ (\ (h,t) -> go t (newResultAccum <> Builder. singleton h))
977975 (Text. uncons rest)
978976 else
979- go rest (resultAccum <> Builder. fromText replacement) )
977+ go rest newResultAccum )
980978 (ctx <> newCtx)
981979 where
982- replacement = stringIgnoreContext replacementNS
980+ replacement = Builder. fromText $ stringIgnoreContext replacementNS
981+ newResultAccum = resultAccum <> replacement
983982 newCtx = NixString. getContext replacementNS
984983 toValue
985984 $ go (stringIgnoreContext ns) mempty
You can’t perform that action at this time.
0 commit comments