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