From 3a3415915f0d0fdce1499d47a2b7fa097f5946ea Mon Sep 17 00:00:00 2001 From: Zomatree Date: Tue, 16 Sep 2025 20:50:34 +0100 Subject: [PATCH] fix: relax settings name regex --- crates/bonfire/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bonfire/src/config.rs b/crates/bonfire/src/config.rs index 5cd87b8b..05f7cf5a 100644 --- a/crates/bonfire/src/config.rs +++ b/crates/bonfire/src/config.rs @@ -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 = - Lazy::new(|| Regex::new(r#"^(\w+)(?:\[(\w+)\])?$"#).unwrap()); + Lazy::new(|| Regex::new(r#"^(\w+)(?:\[(\S+)\])?$"#).unwrap()); /// Enumeration of supported protocol formats #[derive(Debug)]