diff --git a/src/main.rs b/src/main.rs index ffa1f31..7c87c49 100644 --- a/src/main.rs +++ b/src/main.rs @@ -501,7 +501,7 @@ impl TryFrom<&str> for SubDuration { fn try_from(value: &str) -> Result { lazy_static! { - static ref TIME_RE: Regex = Regex::new(r"^(?P-)?(?:(?:(?P\d+):)?(?P\d+):)?(?P\d+(?:[.,]\d+)?)$").unwrap(); + static ref TIME_RE: Regex = Regex::new(r"^(?U)(?P-)?(?:(?P\d+):)?(?:(?P\d+):)?(?P\d+(?:[.,]\d+)?)$").unwrap(); } match TIME_RE.captures(value) {