This commit is contained in:
phiresky 2020-05-19 12:00:20 +02:00
parent 63a9618357
commit d0dcd97232

View File

@ -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)\\.{}$", &regex::escape(extension))).expect("we know this regex compiles") Regex::new(&format!("(?i)\\.{}$", &regex::escape(extension)))
.expect("we know this regex compiles")
} }
pub fn adapter_matcher<T: AsRef<str>>( pub fn adapter_matcher<T: AsRef<str>>(