Skip to content

Commit

Permalink
refactor: regex for stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jan 18, 2024
1 parent d51408d commit 86fb215
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/ErrorBoundary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ class ErrorBoundary extends React.Component {
await Fetch.sendError({
cause: error.cause,
message: error.message,
stack: error?.stack?.replace(
/(http|https):\/\/[a-z0-9.]+(:[0-9]+)?/g,
'',
),
stack: error?.stack?.replaceAll(window.location.href, ''),
name: error.name,
uuid: this.state.uuid,
})
Expand Down

0 comments on commit 86fb215

Please sign in to comment.