Skip to content

Commit 5d3c5fc

Browse files
committed
replace - with _ in file name
1 parent 3de41c3 commit 5d3c5fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/problemUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function genFileExt(language: string): string {
1515
}
1616

1717
export function genFileName(node: IProblem, language: string): string {
18-
const slug: string = _.kebabCase(node.name);
18+
const slug: string = _.kebabCase(node.name).replace(/-/g, '_')
1919
const ext: string = genFileExt(language);
2020
return `p${node.id}_${slug}.${ext}`;
2121
}

0 commit comments

Comments
 (0)