1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-11-23 21:54:45 +02:00

globset: improve debug log

This shows the regex that the glob was compiled to.
This commit is contained in:
Andrew Gallant
2025-10-17 10:27:19 -04:00
parent f09b55b8e7
commit b3dc4b0998

View File

@@ -503,7 +503,11 @@ impl GlobSet {
required_exts.add(i, ext, p.regex().to_owned());
}
MatchStrategy::Regex => {
debug!("glob converted to regex: {:?}", p);
debug!(
"glob `{:?}` converted to regex: `{:?}`",
p,
p.regex()
);
regexes.add(i, p.regex().to_owned());
}
}