fix file ending regex (#13)

This commit is contained in:
phiresky 2019-06-17 12:59:28 +02:00
parent 5d887cf974
commit 89fb6cc1a9
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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>>(