mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 12:24:56 +00:00
rustfmt
This commit is contained in:
parent
63a9618357
commit
d0dcd97232
@ -42,7 +42,8 @@ pub struct FileMeta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn extension_to_regex(extension: &str) -> Regex {
|
pub fn extension_to_regex(extension: &str) -> Regex {
|
||||||
Regex::new(&format!("(?i)\\.{}$", ®ex::escape(extension))).expect("we know this regex compiles")
|
Regex::new(&format!("(?i)\\.{}$", ®ex::escape(extension)))
|
||||||
|
.expect("we know this regex compiles")
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn adapter_matcher<T: AsRef<str>>(
|
pub fn adapter_matcher<T: AsRef<str>>(
|
||||||
|
Loading…
Reference in New Issue
Block a user