mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-26 04:24:21 +01:00
8 lines
215 B
Rust
8 lines
215 B
Rust
pub fn normalize_ident(ident: &str) -> String {
|
|
if ident.starts_with('"') && ident.ends_with('"') {
|
|
ident[1..ident.len() - 1].to_string().to_lowercase()
|
|
} else {
|
|
ident.to_lowercase()
|
|
}
|
|
}
|