#15 Fix empty line regex on darwin (#16)

This commit is contained in:
Felix Scheinost 2023-02-15 17:36:06 +01:00 committed by GitHub
parent 5bcab30ed2
commit b2feaf6b40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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,