mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-04 08:54:20 +01:00
Merge pull request #89 from haaawk/improve_normalize_ident
Improve normalize_ident
This commit is contained in:
11
core/util.rs
11
core/util.rs
@@ -1,6 +1,7 @@
|
||||
pub fn normalize_ident(mut ident: &str) -> String {
|
||||
if ident.starts_with('"') && ident.ends_with('"') {
|
||||
ident = &ident[1..ident.len() - 1];
|
||||
}
|
||||
ident.to_lowercase()
|
||||
pub fn normalize_ident(ident: &str) -> String {
|
||||
(if ident.starts_with('"') && ident.ends_with('"') {
|
||||
&ident[1..ident.len() - 1]
|
||||
} else {
|
||||
ident
|
||||
}).to_lowercase()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user