mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-07 02:04:21 +01:00
7 lines
185 B
Rust
7 lines
185 B
Rust
pub fn normalize_ident(mut ident: &str) -> String {
|
|
if ident.starts_with('"') && ident.ends_with('"') {
|
|
ident = &ident[1..ident.len() - 1];
|
|
}
|
|
ident.to_lowercase()
|
|
}
|