Skip to content

Commit

Permalink
fix #74
Browse files Browse the repository at this point in the history
  • Loading branch information
uctakeoff committed Jun 4, 2022
1 parent a1e1389 commit 053d3b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-counter",
"displayName": "VS Code Counter",
"description": "Count lines of code in many programming languages.",
"version": "3.0.4",
"version": "3.0.5",
"publisher": "uctakeoff",
"author": {
"name": "Ushiyama Kentaro"
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ class ResultFormatter {
return [
`Date : ${toLocalDateString(date)}`,
'',
`Directory ${this.targetDirUri.fsPath}`,
`Directory ${this.targetDirUri.fsPath.replace(/\\/g, '\\\\')}`,
'',
`Total : ${this.total.files} files, ${this.total.code} codes, ${this.total.comment} comments, ${this.total.blank} blanks, all ${this.total.total} lines`,
];
Expand Down Expand Up @@ -746,7 +746,7 @@ class ResultFormatter {
'## Directories',
...dirFormat.headerLines,
...[...this.dirResultTable.values()].sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)
.map(v => dirFormat.line(v.name, v.files, v.code, v.comment, v.blank, v.total)),
.map(v => dirFormat.line(v.name.replace(/\\/g, '\\\\'), v.files, v.code, v.comment, v.blank, v.total)),
];
}
private toMarkdownDetailsLines() {
Expand Down

0 comments on commit 053d3b2

Please sign in to comment.