Skip to content

Commit f911a50

Browse files
committed
fix(add-remove=comment): fixed line editing
1 parent 57e285e commit f911a50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/commands/addRemoveComment/addRemoveComment.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ export class AddRemoveCommentCommand {
6868
const editedLines = lines
6969
.reduce((acc: string[], line: string, i: number) => {
7070
if (i >= start.line && i <= end.line) {
71-
// INFO: \r has to be removed due to line ending differences between Windows and Unix systems
72-
acc.push(this.addRemoveCommentToLine(line.replace(/\r/, '')))
71+
acc.push(this.addRemoveCommentToLine(line))
7372
}
7473

7574
return acc

0 commit comments

Comments
 (0)