diff --git a/src/services/telegram/commands/diario.rs b/src/services/telegram/commands/diario.rs index e0228599..10e88585 100644 --- a/src/services/telegram/commands/diario.rs +++ b/src/services/telegram/commands/diario.rs @@ -27,7 +27,7 @@ impl FromStr for DiarioArgs { type Err = anyhow::Error; fn from_str(s: &str) -> Result { - static REGEX: Lazy = Lazy::new(|| Regex::new(r#" *(?:\[(?.+)])? *"(?.+)"[, ]*(?:[-–—]+(?\w+)(?:, *(?.+))?)?"#).unwrap()); + static REGEX: Lazy = Lazy::new(|| Regex::new(r#" *(?:\[(?.+)])? *"(?.+)"[, ]*(?:[-–—]+(?[^\n,]+)(?:, *(?.+))?)?"#).unwrap()); let captures = REGEX.captures(s);