mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-30 22:44:21 +01:00
8 lines
191 B
Rust
8 lines
191 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()
|
|
}
|