krebs types.absolute-pathname: admit /
This commit is contained in:
parent
72956b5d71
commit
5e91e789b6
@ -337,7 +337,7 @@ types // rec {
|
||||
# TODO two slashes
|
||||
absolute-pathname = mkOptionType {
|
||||
name = "POSIX absolute pathname";
|
||||
check = s: pathname.check s && substring 0 1 s == "/";
|
||||
check = s: s == "/" || (pathname.check s && substring 0 1 s == "/");
|
||||
};
|
||||
|
||||
# POSIX.1‐2013, 3.267 Pathname
|
||||
|
Loading…
Reference in New Issue
Block a user