Skip to content

Commit

Permalink
Revert "fix ignore folders (#1929)" (#2048)
Browse files Browse the repository at this point in the history
This reverts commit acca798.
  • Loading branch information
helloanoop authored Apr 9, 2024
1 parent acca798 commit 4f7c295
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/bruno-electron/src/app/watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,12 @@ class Watcher {
ignoreInitial: false,
usePolling: watchPath.startsWith('\\\\') ? true : false,
ignored: (filepath) => {
const relativePath = path.relative(watchPath, filepath);
const normalizedPath = relativePath.replace(/\\/g, '/');
const normalizedPath = filepath.replace(/\\/g, '/');
const relativePath = path.relative(watchPath, normalizedPath);

return ignores.some((ignorePattern) => {
const normalizedIgnorePattern = ignorePattern.replace(/\\/g, '/');
return normalizedPath === normalizedIgnorePattern || normalizedPath.startsWith(normalizedIgnorePattern);
return relativePath === normalizedIgnorePattern || relativePath.startsWith(normalizedIgnorePattern);
});
},
persistent: true,
Expand Down

0 comments on commit 4f7c295

Please sign in to comment.