Revert renaming class, enum and field names

This commit is contained in:
a2x
2024-03-29 01:51:20 +10:00
parent bf890592c2
commit 87fccce283
23 changed files with 285261 additions and 58 deletions

View File

@@ -220,3 +220,8 @@ pub fn format_module_name(module_name: &String) -> String {
module_name.strip_suffix(extension).unwrap().to_string()
}
#[inline]
pub fn sanitize_name(name: &str) -> String {
name.replace(|c: char| !c.is_alphanumeric(), "_")
}