summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/types.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/types.nix b/lib/types.nix
index 5a01e5b0..f9ec7b1c 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -426,8 +426,7 @@ rec {
label = mkOptionType {
name = "label";
# TODO case-insensitive labels
- check = x: isString x
- && test "[0-9A-Za-z]([0-9A-Za-z-]*[0-9A-Za-z])?" x;
+ check = test "[0-9A-Za-z]([0-9A-Za-z-]*[0-9A-Za-z])?";
merge = mergeOneOption;
};