diff options
author | tv <tv@krebsco.de> | 2017-06-18 16:17:55 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-06-18 16:17:55 +0200 |
commit | 9b50125b86c36ecf3e290c99e323239994fa77a7 (patch) | |
tree | 078487c3436298c77c548929276d7a21804f6e61 | |
parent | faea33e1cb18010ac60f677ac2c18e813e284cc7 (diff) |
types.label: drop redundant isString
-rw-r--r-- | lib/types.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/types.nix b/lib/types.nix index 5a01e5b03..f9ec7b1c3 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; }; |