You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ throwError $ErrorCall"builtins.replaceStrings: Arguments `from`&`to` are lists `from` what replace `to` what, so the number of their inhabitanting elements must always match."
950
+
951
+
let
952
+
go remainder processedAccum ctx =
953
+
case maybePrefixMatches nsListMatch remainder of
954
+
Nothing->
955
+
process remainder processedAccum ctx
956
+
Just (matched, replacementNS, rest) ->
957
+
-- Allowing match on "" is a bug-quirk of Nix,
958
+
-- when "" is checked - it always matches. And so - if there is no previous matches the "" is replaced with " " and the process simply passesthrough the next char.
(if matched ==memptythen process else go) rest updProcessedAccum newCtx
947
965
948
-
when (length nsFrom /=length nsTo)
949
-
$ throwError $ErrorCall"builtins.replaceStrings: Arguments `from`&`to` are lists `from` what replace `to` what, so the number of their inhabitanting elements must always match."
0 commit comments