globset: expand docs and impl Default for GlobSet
Closes #1882, Closes #1883
This commit is contained in:
committed by
Andrew Gallant
parent
ee23ab5173
commit
8a4071eea9
@@ -616,6 +616,8 @@ impl<'a> GlobBuilder<'a> {
|
||||
}
|
||||
|
||||
/// Toggle whether a literal `/` is required to match a path separator.
|
||||
///
|
||||
/// By default this is false: `*` and `?` will match `/`.
|
||||
pub fn literal_separator(&mut self, yes: bool) -> &mut GlobBuilder<'a> {
|
||||
self.opts.literal_separator = yes;
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user