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",
"/Users"]
Allowed* =
toSeq('A'..'Z') &
toSeq('a'..'z') &
toSeq('0'..'9') &
toSeq(['/', '_', '-'])
Allowed* = {
'a'..'z',
'A'..'Z',
DirSep, AltSep,
'_', '-'}
type
FSDatastore* = ref object of Datastore