Skip to content

Commit

Permalink
fix: relax overlay frame regex (#14979)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Nov 14, 2023
1 parent 0435ba7 commit 0b325bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/client/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ kbd {
`

const fileRE = /(?:[a-zA-Z]:\\|\/).*?:\d+:\d+/g
const codeframeRE = /^(?:>?\s+\d+\s+\|.*|\s+\|\s*\^.*)\r?\n/gm
const codeframeRE = /^(?:>?\s*\d+\s+\|.*|\s+\|\s*\^.*)\r?\n/gm

// Allow `ErrorOverlay` to extend `HTMLElement` even in environments where
// `HTMLElement` was not originally defined.
Expand Down

0 comments on commit 0b325bb

Please sign in to comment.