mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
7 lines
215 B
Rust
7 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()
|
|
}
|
|
}
|