Skip to content

Commit

Permalink
improve filter: recursive directory
Browse files Browse the repository at this point in the history
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@protonmail.com>
  • Loading branch information
dannypsnl authored and kentookura committed Dec 30, 2023
1 parent 08f8656 commit ce6be94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ fn proper_pathset() -> io::Result<Vec<String>> {
r.map(|v| {
v.into_iter()
.filter(|path| {
path != ".git"
&& path != ".hg"
&& path != "node_modules"
!path.contains(".git")
&& !path.contains(".hg")
&& !path.contains("node_modules")
&& path != "output"
&& path != "assets"
&& path != "theme"
Expand Down

0 comments on commit ce6be94

Please sign in to comment.