types.label: drop redundant isString

This commit is contained in:
tv 2017-06-18 16:17:55 +02:00
parent faea33e1cb
commit 9b50125b86

View File

@ -426,8 +426,7 @@ rec {
label = mkOptionType { label = mkOptionType {
name = "label"; name = "label";
# TODO case-insensitive labels # TODO case-insensitive labels
check = x: isString x check = test "[0-9A-Za-z]([0-9A-Za-z-]*[0-9A-Za-z])?";
&& test "[0-9A-Za-z]([0-9A-Za-z-]*[0-9A-Za-z])?" x;
merge = mergeOneOption; merge = mergeOneOption;
}; };