mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-14 00:03:04 +00:00
fix file ending regex (#13)
This commit is contained in:
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)
|
# 0.9.1 (2019-06-16)
|
||||||
|
|
||||||
- Add enabled adapters to cache key if caching for archive
|
- 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 {
|
pub fn extension_to_regex(extension: &str) -> Regex {
|
||||||
Regex::new(&format!(".*\\.{}", ®ex::escape(extension))).expect("we know this regex compiles")
|
Regex::new(&format!("\\.{}$", ®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