Skip to content

Commit

Permalink
include paths handling edited
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Sep 22, 2021
1 parent c30df50 commit 1b2c9cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integrations/Sentry/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Sentry {
const formattedAllowUrls = convertObjectToArray(this.allowUrls);
const formattedDenyUrls = convertObjectToArray(this.denyUrls);
const formattedIgnoreErrors = convertObjectToArray(this.ignoreErrors);
const formattedIncludePaths = convertObjectToArray(this.includePathsArray);

const customRelease = this.customVersionProperty
? window[this.customVersionProperty]
Expand All @@ -59,8 +60,8 @@ class Sentry {

let includePaths = [];

if (this.includePathsArray.length > 0) {
includePaths = this.includePathsArray.map(function (path) {
if (formattedIncludePaths.length > 0) {
includePaths = formattedIncludePaths.map(function (path) {
let regex;
try {
regex = new RegExp(path);
Expand Down

0 comments on commit 1b2c9cf

Please sign in to comment.