mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
This does not include any automation for the release branch, but is based on the configuration of https://github.com/NixOS/nix/pull/12349 pre-commit run -a nixfmt-rfc-style
13 lines
450 B
Nix
13 lines
450 B
Nix
with builtins;
|
|
|
|
[
|
|
(replaceStrings [ "o" ] [ "a" ] "foobar")
|
|
(replaceStrings [ "o" ] [ "" ] "foobar")
|
|
(replaceStrings [ "oo" ] [ "u" ] "foobar")
|
|
(replaceStrings [ "oo" "a" ] [ "a" "oo" ] "foobar")
|
|
(replaceStrings [ "oo" "oo" ] [ "u" "i" ] "foobar")
|
|
(replaceStrings [ "" ] [ "X" ] "abc")
|
|
(replaceStrings [ "" ] [ "X" ] "")
|
|
(replaceStrings [ "-" ] [ "_" ] "a-b")
|
|
(replaceStrings [ "oo" "XX" ] [ "u" (throw "unreachable") ] "foobar")
|
|
]
|