diff --git a/globset/src/glob.rs b/globset/src/glob.rs index eccfb2d..e327d99 100644 --- a/globset/src/glob.rs +++ b/globset/src/glob.rs @@ -122,6 +122,11 @@ impl GlobMatcher { pub fn is_match_candidate(&self, path: &Candidate) -> bool { self.re.is_match(&path.path) } + + /// Returns the `Glob` used to compile this matcher. + pub fn glob(&self) -> &Glob { + &self.pat + } } /// A strategic matcher for a single pattern.