diff --git a/libimagtimeui/src/parse.rs b/libimagtimeui/src/parse.rs index 4b3c18f3..8898e184 100644 --- a/libimagtimeui/src/parse.rs +++ b/libimagtimeui/src/parse.rs @@ -4,3 +4,7 @@ pub trait Parse : Sized { } +pub fn time_parse_regex() -> &'static str { + r#"(?P\d{4})-(?P\d{2})-(?P\d{2})(T(?P\d{2})(:(?P\d{2})(:(?P\d{2}))?)?)?$"# +} +