From 84b95136a680610f5377c3342c0425ee1211935d Mon Sep 17 00:00:00 2001 From: Andrew McKenzie Date: Wed, 18 Sep 2024 16:45:31 +0100 Subject: [PATCH] update regex to better match period --- file_store/src/file_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file_store/src/file_info.rs b/file_store/src/file_info.rs index 100154d6c..86c2faa4a 100644 --- a/file_store/src/file_info.rs +++ b/file_store/src/file_info.rs @@ -14,7 +14,7 @@ pub struct FileInfo { } lazy_static! { - static ref RE: Regex = Regex::new(r"([a-z,_]+).(\d+)(.gz)?").unwrap(); + static ref RE: Regex = Regex::new(r"([a-z,\d,_]+)\.(\d+)(\.gz)?").unwrap(); } impl FromStr for FileInfo {