Skip to content

Commit

Permalink
treewide: Fix invalid string escapes
Browse files Browse the repository at this point in the history
(cherry picked from commit 591861f)
  • Loading branch information
piegamesde committed Dec 20, 2024
1 parent 961c606 commit f9f0c60
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkgs/build-support/trivial-builders/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ rec {
(name: value:
{
inherit value;
name = lib.head (builtins.match "${builtins.storeDir}/[${nixHashChars}]+-(.*)\.drv" name);
name = lib.head (builtins.match "${builtins.storeDir}/[${nixHashChars}]+-(.*)\\.drv" name);
})
derivations;
# The syntax of output paths differs between outputs named `out`
Expand Down
2 changes: 1 addition & 1 deletion pkgs/pkgs-lib/formats/hocon/test/comprehensive/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let
"b"
]
];
nasty_string = "\"@\n\\\t^*\b\f\n\0\";'''$";
nasty_string = "\"@\n\\\t^*bf\n0\";'''$";

"misc attrs" = {
x = 1;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/pkgs-lib/formats/java-properties/test/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ stdenv.mkDerivation {
);

src = lib.sourceByRegex ./. [
".*\.java"
".*\\.java"
];
# On Linux, this can be C.UTF-8, but darwin + zulu requires en_US.UTF-8
LANG = "en_US.UTF-8";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ let
1
])
];
nasty_string = "\"@\n\\\t^*\b\f\n\0\";'''$";
nasty_string = "\"@\n\\\t^*bf\n0\";'''$";

weirderTypes = {
_includes = [ include_file ];
Expand Down

0 comments on commit f9f0c60

Please sign in to comment.