use proper os separator depending on OS

This commit is contained in:
Dmitriy Ryajov 2022-09-19 22:21:10 -06:00
parent f9cfab5cbc
commit 17c4ff92a4
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -29,11 +29,11 @@ const
"/home", "/home",
"/Users"] "/Users"]
Allowed* = Allowed* = {
toSeq('A'..'Z') & 'a'..'z',
toSeq('a'..'z') & 'A'..'Z',
toSeq('0'..'9') & DirSep, AltSep,
toSeq(['/', '_', '-']) '_', '-'}
type type
FSDatastore* = ref object of Datastore FSDatastore* = ref object of Datastore