mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-11-09 22:08:58 +01:00
fix(cli): paths normalization to support Windows
This commit is contained in:
parent
c682b174f3
commit
953323781c
@ -116,7 +116,7 @@ export class Solution implements SolutionOptions {
|
|||||||
}
|
}
|
||||||
return solutions.map((solution) => {
|
return solutions.map((solution) => {
|
||||||
const [, challengeName, , programmingLanguageName, solutionName] =
|
const [, challengeName, , programmingLanguageName, solutionName] =
|
||||||
solution.split('/')
|
solution.replaceAll('\\', '/').split('/')
|
||||||
return new Solution({
|
return new Solution({
|
||||||
challenge: new Challenge({
|
challenge: new Challenge({
|
||||||
name: challengeName
|
name: challengeName
|
||||||
|
Loading…
Reference in New Issue
Block a user