Skip to content

Commit

Permalink
Issue JoshuaKGoldberg#30 - Errors in the "Error List window" do not g…
Browse files Browse the repository at this point in the history
…o to the correct line number
  • Loading branch information
esampsonite committed Jun 3, 2016
1 parent 2d0e894 commit b9f3ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function formatOutput(lintError: string | any): string {
return lintError;
}

return lintError.name.replace("/", "\\")
return lintError.name.replace(/\//g, "\\")
+ `(${(lintError.startPosition.line + 1)},${(lintError.startPosition.character + 1)})`
+ `: error tslint-${lintError.ruleName}`
+ `: TSLint failure: ${lintError.failure}.`;
Expand Down

0 comments on commit b9f3ae6

Please sign in to comment.