Fix up backslash for windows paths

This commit is contained in:
Tom McLaughlin 2022-09-29 01:56:35 -06:00
parent 86e3e0674b
commit d052d6330d

View File

@ -82,6 +82,7 @@ nodeToFolderName name numSiblings indexInParent = padding <> truncateFileNameToL
| otherwise -> paddedNumber <> "_"
fixupName = replace '/' '_'
. replace '\\' '_'
replace :: Eq a => a -> a -> [a] -> [a]
replace a b = map $ \c -> if c == a then b else c