Skip to content

Commit

Permalink
Change order
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Dec 9, 2024
1 parent e85c590 commit 2c8b1cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn files(dir: &str) -> Vec<String> {
pub fn glob(dir: &str, pattern: &str) -> Vec<String> {
let pat = glob::parse(pattern);
files(dir).iter()
.map(|f| f.clone())
.filter(|f| glob::compare(f, &pat) )
.map(|f| f.clone())
.collect()
}

0 comments on commit 2c8b1cd

Please sign in to comment.