fix(cli): paths normalization to support Windows

This commit is contained in:
Divlo committed 2021-10-16 15:20:15 +02:00
1 parent c682b174f3
commit 953323781c
1 file changed
+1 -1
+1 -1
View File
@@ -116,7 +116,7 @@ export class Solution implements SolutionOptions {
}
return solutions.map((solution) => {
const [, challengeName, , programmingLanguageName, solutionName] =
solution.split('/')
solution.replaceAll('\\', '/').split('/')
return new Solution({
challenge: new Challenge({
name: challengeName