3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #135843 from polykernel/concatstringssep-fix

lib/strings: fix infinite recursion on concatStringsSep fallback
This commit is contained in:
Robert Hensing 2021-08-28 08:37:37 +02:00 committed by GitHub
commit dc596e50d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ rec {
=> "usr/local/bin"
*/
concatStringsSep = builtins.concatStringsSep or (separator: list:
concatStrings (intersperse separator list));
lib.foldl' (x: y: x + y) "" (intersperse separator list));
/* Maps a function over a list of strings and then concatenates the
result with the specified separator interspersed between