summaryrefslogtreecommitdiffstats
path: root/lib/types.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-03-12 11:18:05 +0100
committerlassulus <lassulus@lassul.us>2019-03-12 11:18:05 +0100
commita56a2ef0083653a0c0d5c6339857878521958b5d (patch)
treeb81a6a64b916464bd9702f153e852b48d59c167d /lib/types.nix
parentc4ebcc43d2b2f2451b16ee453f5275bd46018cd4 (diff)
parent4b7673a6a7f221119883ec043519b2f7323779e1 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'lib/types.nix')
-rw-r--r--lib/types.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix
index 17c1688f..45c00989 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;
};