Skip to content

Commit

Permalink
#15 Fix empty line regex on darwin (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixscheinost authored Feb 15, 2023
1 parent 5bcab30 commit b2feaf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jobs/generators/istio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ with lib; let
then "null"
else builtins.toString value;

removeEmptyLines = str: concatStringsSep "\n" (filter (l: (builtins.match "( |)+" l) == null) (splitString "\n" str));
removeEmptyLines = str: concatStringsSep "\n" (filter (l: builtins.match "[[:space:]]*" l != []) (splitString "\n" str));

mkOption = {
description ? null,
Expand Down
2 changes: 1 addition & 1 deletion jobs/generators/k8s/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ with lib; let
then "null"
else builtins.toString value;

removeEmptyLines = str: concatStringsSep "\n" (filter (l: (builtins.match "( |)+" l) == null) (splitString "\n" str));
removeEmptyLines = str: concatStringsSep "\n" (filter (l: builtins.match "[[:space:]]*" l != []) (splitString "\n" str));

mkOption = {
description ? null,
Expand Down

0 comments on commit b2feaf6

Please sign in to comment.