Skip to content

Commit

Permalink
Revert "fix ignore folders (usebruno#1929)" (usebruno#2048)
Browse files Browse the repository at this point in the history
This reverts commit acca798.
  • Loading branch information
helloanoop authored and slowjoe007 committed Apr 10, 2024
1 parent c043748 commit 72510c5
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 72510c5

Please sign in to comment.