We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5dd7a8 commit be3ae79Copy full SHA for be3ae79
src/lib.rs
@@ -1131,11 +1131,6 @@ impl MatchOptions {
1131
pub fn new() -> Self {
1132
Self::default()
1133
}
1134
- /// Enables or disables tilde (`~`) expansion in glob patterns
1135
- pub fn glob_tilde_expansion(mut self, v: bool) -> Self {
1136
- self.glob_tilde_expansion = v;
1137
- self
1138
- }
1139
1140
1141
#[cfg(test)]
src/main.rs
@@ -0,0 +1,9 @@
1
+extern crate glob;
2
+use glob::{glob_with, MatchOptions};
3
+
4
+fn main() {
5
+ let options = MatchOptions::new().glob_tilde_expansion(true);
6
+ for v in glob_with("~eagle/*", options).unwrap() {
7
+ println!("> {:?}", v.unwrap());
8
+ }
9
+}
0 commit comments