fix file ending regex (#13)

pull/18/head
phiresky 5 years ago
parent 5d887cf974
commit 89fb6cc1a9

@ -1,3 +1,7 @@
# 0.9.2 (2019-06-17)
- Fix file ending regex ([#13](https://github.com/phiresky/ripgrep-all/issues/13))
# 0.9.1 (2019-06-16)
- Add enabled adapters to cache key if caching for archive

@ -42,7 +42,7 @@ pub struct FileMeta {
}
pub fn extension_to_regex(extension: &str) -> Regex {
Regex::new(&format!(".*\\.{}", &regex::escape(extension))).expect("we know this regex compiles")
Regex::new(&format!("\\.{}$", &regex::escape(extension))).expect("we know this regex compiles")
}
pub fn adapter_matcher<T: AsRef<str>>(

Loading…
Cancel
Save