fix: allow numbers in object IDs

This commit is contained in:
2025-03-13 21:30:17 -04:00
parent 916b53d242
commit 28b11316e5

View File

@@ -19,6 +19,7 @@ impl FromStr for ObjectId {
for c in s.chars() { for c in s.chars() {
match c { match c {
'a'..='z' => {} 'a'..='z' => {}
'0'..='9' => {}
'_' => {} '_' => {}
_ => return Err(ObjectIdParsingError { encountered: c }), _ => return Err(ObjectIdParsingError { encountered: c }),
} }