fix: relax settings name regex

This commit is contained in:
Zomatree
2025-09-16 20:50:34 +01:00
committed by Angelo Kontaxis
parent 964884a5de
commit 3a3415915f

View File

@@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
/// matches either a single word ie "users" or a key and value ie "settings[notifications]"
static READY_PAYLOAD_FIELD_REGEX: Lazy<Regex> =
Lazy::new(|| Regex::new(r#"^(\w+)(?:\[(\w+)\])?$"#).unwrap());
Lazy::new(|| Regex::new(r#"^(\w+)(?:\[(\S+)\])?$"#).unwrap());
/// Enumeration of supported protocol formats
#[derive(Debug)]