From 90bd171212384f2dcf801cfe7e1ab89fe46b0f65 Mon Sep 17 00:00:00 2001 From: copygirl Date: Mon, 5 Jan 2026 10:50:38 +0100 Subject: [PATCH] Allow underscore in `Identifier` --- common/src/identifier.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/identifier.rs b/common/src/identifier.rs index 437ebb0..20b2a85 100644 --- a/common/src/identifier.rs +++ b/common/src/identifier.rs @@ -54,7 +54,8 @@ impl Identifier { let mut i = 0; while i < value.len() { if let Some(c) = char::from_u32(bytes[i] as u32) { - if c.is_ascii_lowercase() { + // TODO: Disallow leading underscore or multiple in a row? + if c.is_ascii_lowercase() || c == '_' { i += 1; continue; }