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; }