Skip to content

Commit

Permalink
fix(console): missing brackets in console BSOD (#4215)
Browse files Browse the repository at this point in the history
Before
<img width="879" alt="image" src="https://github.com/winglang/wing/assets/1237390/113975f0-b934-4034-869c-91ad7f347f15">

After
<img width="1073" alt="image" src="https://github.com/winglang/wing/assets/1237390/97a375ed-ffaa-41ff-ae05-9c9cef4c47b2">

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
  • Loading branch information
MarkMcCulloh authored Sep 19, 2023
1 parent ed33433 commit 7b8d8b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/wing-console/console/ui/src/shared/use-file-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export const createHtmlLink = (
expanded: boolean = false,
) => {
return error
.replaceAll("<", "&lt;")
.replaceAll(">", "&gt;")
.replaceAll(
/\B((?:[a-z]:)?[/\\]\S+):(\d+):(\d+)/gi,
(match, path, line, column) => {
Expand Down

0 comments on commit 7b8d8b3

Please sign in to comment.