summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-02-16 19:18:04 +0100
committertv <tv@krebsco.de>2019-02-16 19:18:04 +0100
commit7ab31ffeb0d074ea7c32697667412e08fc4db99d (patch)
treef98a233842357707f94a3fa285bcaa35277aeed4 /lib
parenteef0b6e4790f6cf0773d0dddb730769588146417 (diff)
lib.types.filename.check: remove unnecessary ()
Diffstat (limited to 'lib')
-rw-r--r--lib/types.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix
index 17c1688fa..45c009893 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -539,7 +539,7 @@ rec {
# POSIX.1‐2013, 3.278 Portable Filename Character Set
filename = mkOptionType {
name = "POSIX filename";
- check = test "([0-9A-Za-z._])[0-9A-Za-z._-]*";
+ check = test "[0-9A-Za-z._][0-9A-Za-z._-]*";
merge = mergeOneOption;
};